Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [luau]

Luau is a scripting language based on Lua 5.1.

luau
0 votes
0 answers
12 views

ClickDetector not detecting input

For some reason my Click Detector that I had put inside of my Local Script / Script (tried both) doesn't detect when it's clicked on. Does anyone know what causes this? Code: local ts = game:...
Relaxing Gaming's user avatar
0 votes
0 answers
21 views

PlayerGUI will not show up on mobile

I'm creating a restaurant game. When you click the menu, which is a part in workspace, it should open up a UI frame that has some buttons on it. They are connected by two remote events, one for making ...
Clorp's user avatar
  • 1
1 vote
1 answer
32 views

How to Apply the Same Skin to All Players in Roblox?

I am experimenting in Roblox Studio, and I want to create a logic that would give all players the same skin. (All players must look the same during gameplay.) I found two options: First option: Drag ...
Stalker's user avatar
  • 13
0 votes
2 answers
36 views

My animation doesnt load while collaborating

local module = {} local RPunchAnim = Instance.new("Animation") local LPunchAnim = Instance.new("Animation") local KickAnim = Instance.new("Animation") local UppercutAnim =...
Tung Duong Nguyen's user avatar
0 votes
0 answers
40 views

Script not detecting when a player with a set ID joins. Luau

For some reason a simple script that I wrote, that should call a function whenever a player joins, which after that checks if the players ID is one of the either. game.Players.PlayerAdded:Connect(...
Relaxing Gaming's user avatar
0 votes
0 answers
25 views

Is there a way to detect if local players character is touching the hitbox instead of the victim? Luau

Main question for me is can I make it so that it can access the local players character from a variable given in a module script? I can't seem to access the character of it, even though it still IS ...
Relaxing Gaming's user avatar
0 votes
0 answers
70 views

Lua function: 'type', recreated in Luau

I need help with CheckType. How can I make it check: Enum. (Enum is a userdata, but it doesn't work; Enum is in Luau.) (This is me asking for help in the Language: Luau (Roblox)) When I test Enum, it ...
Valkyrie's user avatar
2 votes
1 answer
63 views

Passing arguments through a RemoteEvent in Roblox

I'm currently trying to make a message system in Roblox. The server should be able to send a message via a RemoteEvent, and the client should be able to accept it by displaying the message on a GUI ...
Robin Bubeník's user avatar
0 votes
1 answer
49 views

Stamina bar going from 100 to 0 for no reason, Stamina value not getting any interactions

For some reason whenever I launch my experience, like a second or a half passes and the bar goes from full to empty. I also can't make any interactions with the value. (example: whenever I try to make ...
Relaxing Gaming's user avatar
1 vote
2 answers
50 views

All ModuleScript variables == nil

For some reason, my local variables in the module script all seem to be nil, with no exact explanation for it, or solution. Local Script (Stamina bar Script): local ms = require(game.ReplicatedStorage....
Relaxing Gaming's user avatar
0 votes
0 answers
28 views

How do I make a hitbox part move with the character

Is it possible to make a part that is welded to the Humanoid Root Part move with it? It serves as a hitbox, but I encounter the problem that if I move forward while attacking it hurts the player. For ...
Relaxing Gaming's user avatar
0 votes
0 answers
36 views

Looking for techniques to Optimize a Voxel Destruction System (Roblox)

I'm currently working on a voxel destruction system for a roblox game and I'm facing some performance issues. The system works as follows: Hitbox Generation: A hitbox is repeatedly generated at a ...
Philos's user avatar
  • 1
0 votes
0 answers
32 views

Can't Stop Punching

My punching Animation Won't stop as once I press M1(LeftClick) it just keeps on punching and won't stop so I'm trying to get the animation to only play when I punch once and than once I press it once ...
Shadow shadow.v's user avatar
1 vote
1 answer
50 views

Why doesn't my Roblox Studio print script execute correctly

For some reason, my pretty short script just refuses to print out or do anything after declaring variables, does anyone have an answer? I think it may actually be the wait for child and wait() but I ...
Relaxing Gaming's user avatar
-1 votes
1 answer
54 views

UserInputService isn't detecting inputs

For some reason, my code doesn't work in any way. Does someone has an answer why UserInputService doesn't work for me? local player = game.Players.LocalPlayer local character = player.CharacterAdded:...
Relaxing Gaming's user avatar

15 30 50 per page
1
2 3 4 5
12