Questions tagged [luau]

Luau is a scripting language based on Lua 5.1.

The luau language was developed by Roblox. The language's website is at https://luau-lang.org/.

123 questions
0
votes
1 answer

How to change label text to a Attribute value

I was trying to make a TextLabel that if a player is added into the game, then the text of label will change to the attribute value of the player. I tried to make but it didn't work. game.Players.PlayerAdded:Connect(function(Player) local ItemToSell…
takezo
  • 101
  • 7
0
votes
1 answer

Trying to add +1 value in a attribute - Roblox Luau

I was trying to make a code that if you touch a coin, then the value of your coins goes up 1 more, but i tried to make and haven't sucess. Here's the code. script.Parent.Touched:Connect(function(Player) if Player.Parent:FindFirstChild("Humanoid")…
takezo
  • 101
  • 7
0
votes
2 answers

Roblox Studio: DataStore request was added to queue

Basically I'm trying to make a banscript, but whenever I hit play on Roblox Studio it tells me the follwing: DataStore request was added to queue. If request queue fills, further requests will be dropped. And any Datastore changes I try to make…
goodbee
  • 3
  • 3
0
votes
1 answer

Dummy doens't follow the Character of the Player

I have been made a code but he doens't work. The code basically makes a Humanoid of the dummy follow a player, but the humanoid doens't follow the Character. Here is the code., function followplayer() local closestplayer, closestdistance = nil,…
takezo
  • 101
  • 7
0
votes
1 answer

Roblox. I don't know and can't think of something to get only X and Z coordinate in lookvector

I only need the X and Z coordinates for a look vector in Roblox but i cant think of any way to get only the X and Z coordinates in a look vector.
0
votes
1 answer

Argument 1 missing or nil error on roblox studio

Hope you are having a good day. I am just here to say I have watched Alvinblox's egg hatching system tutorial and I am currently at part 2. There is a new error called "Argument 1 missing or nil" it is at line 60 in the petFollowPlayer script (local…
0
votes
1 answer

Roblox Studio (LUA) - GUI Animation

How can I make a GUI object that progressively increases in size equally on each side? By example: Thee initial position of the circle will be {0.5, 0}, {0.5, 0} The final position of the circle will be {0.75, 0}, {0.75, 0} The circle, won't…
Ervum
  • 11
  • 3
0
votes
2 answers

Why is my Luau code not hiding the GUIs that I tried to hide?

My code is for hiding some GUIs that I don't want to show. (Note that this is Luau, I can't post to DevForums because I am not a member) This is what I want to hide: Link here The code I used was: local Dialog = false local Confirm = false local…
0
votes
1 answer

Roblox Studio (LUA) - Enemy to orientation

I have NPC which, presumably, is an Enemy. I want it to return to OriginalPosition and OriginalOrientation after the player dies. However (as marked in a code-comment), with function :MoveTo(), the character doesn't return to the actual same…
Ervum
  • 11
  • 3
0
votes
1 answer

Remote Event doesnt use given arguments | Roblox

client: local frame = script.Parent.Parent script.Parent.MouseButton1Down:Connect(function() script.Parent.SendReport:FireServer(game.Players.LocalPlayer,script.Parent.Parent.plr.Text, script.Parent.Parent.plr.Text,…
Whoman
  • 36
  • 7
0
votes
1 answer

Is there a way to get an instance by the attributes in Roblox?

As I've said above, I'd like to ask if you could get an instance out of others with the same name by the attributes given to it.
0
votes
0 answers

ROBLOX: How to create viewmodel bobbing/movement?

What's my problem?: I've been trying to look through scripts, looking on DevForum, and/or YouTube for anything. Nothing so far :*( Elaborate: I have my Viewmodel set up (Viewmodel is a first person arm model that only the player can see.) and I know…
0
votes
1 answer

Handling multiple Ordered Data Store requests

I’m trying to script one of those Time Trial games, the thing is they have leaderboards which require them to request data for multiple stages at the same time after time intervals. I’m coding something similar, I have 10 stages, however after a…
-1
votes
1 answer

I dont understand what is wrong with my humanoid code?

local sinkpart = script.Parent local function sink(otherpart) print("kill part touched") local people = otherpart.Parent local humanoid = people:FindFirstChild("humanoid") if humanoid then humanoid.Health = 0 …
-1
votes
1 answer

How would I detect if a GUI touches another GUI?

So, I am trying to make a game based on guis to make it 2D and to have custom sprites, and I want to make bosses that take damage when you shoot them, and how would I do that, due to needing the GUI's to detect when it touches another GUI, all my…
rufu
  • 13
  • 4
1 2 3
8
9