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
1
vote
0 answers

Roblox leaderstats not saving

Ive been trying to make a game and somewhat successfully coded most of the game beside the dataStore saving. i'm unsure why it wont save as i've re-coded it many times and still isnt working local clickDataStore =…
nil
  • 11
  • 1
0
votes
0 answers

How to make the AmbientReverb of a roblox game change locally for a player once it has entered a area/part

enter image description here How to make this work (I didn't create the script.) I want the game.SoundService.AmbientReverb to change from Arena to padded cell when player walks into the "Box" called workspace.Map.SoundZones.RubbleZone function…
Dyban
  • 1
0
votes
1 answer

Roblox Studio Bug: Remote Event parameter is nil

I have a bug in my Roblox Project. Im very frustrated because it doesnt work as expected. I have a remote event that fires the server from a local script. It gives the parameter "OilBarrel". In the Server script it looks when its fired and then the…
Spiegelei
  • 3
  • 3
0
votes
0 answers

Why part is missing and some parts are created in Roblox Studio?

I made a script that generate stars with accurate Position but, when i click play some parts was missing other created, when i click Test the all part created successfully. In script output i dont see any error. How to fix this? This make me…
0
votes
0 answers

I am working on developing in Roblox and I need help filtering text and then re-opening the input window

I have followed some youtube videos and my dad helped me a little, but this is not a language he is very familiar with. He was able to get the inputs working between the local and remote scripts, but he wasn't able to figure out why we never get a…
Aries
  • 1
0
votes
1 answer

Roblox Database doesn't save player's data

local DataStoreService = game:GetService("DataStoreService") local DataBase = DataStoreService:GetDataStore("data") local sessionData = {} local RunService = game:GetService("RunService") local Players =…
AronasRR
  • 23
  • 3
0
votes
0 answers

In Laua in Roblox Studio what does call mean?

I am trying to go through the tutorials to learn how to make a game in Roblox. I am at the part in the website: Guides, Tutorials, Environments, In-Game sounds. Then all the way at the bottom of the page where is says Play a sound. Here is what…
0
votes
1 answer

Attempt to index nil with WaitForChild, I cant figure out why

Im making a script for a roblox simulator where when you click holding a weight, you gain strength. Like lifting simulator. This is the script local weight = script.Parent weight.Activated:Connect(function(player) local PlayerPoints =…
ben
  • 1
  • 2
0
votes
1 answer

Roblox studio WaitForChild indexing as nil?

Whenever i attempt to use the WaitForChild event, it doesnt work and i have zero clue why local ui = game.Players.LocalPlayer:WaitForChild("PlayerGui").ScreenGui script.Parent.Touched:Connect(function() wait() ui.Enabled = true …
ben
  • 1
  • 2
0
votes
1 answer

Random errors which have nothing to do with my script and pop up in output everytime i make a new game

When I make a script and run it, even if it is short and simple like print("Hello World") I get this whole load of errors 09:00:54.575 Walkspeed Adjuster - Server 09:00:55.286 cloud_6691945816.Run Gui.Background.ValueChange:28: attempt to index…
ben
  • 1
  • 2
0
votes
1 answer

Different Errors that when fixed just generate another Error- ROBLOX Studio

So I am coding a game where on an NPC's death, The player's kills score goes up by 1 but there seems to be an error when I fix it all the time. It's either an 'Attempted to add Instance and Number' or 'Attempt to index number with 'Value'' Here is…
0
votes
1 answer

Teleportation script randomly stopped working today

I made a teleportation script yesterday, tested it, and then went to sleep, now it doesn't work and it simply outputs the message "Script 'Workspace.first.Script', Line 11" and "Cfrane is not a valid member of Model "Workspace.davidechko". Is it…
0
votes
2 answers

Roblox GUI MouseButton1Click not working properly?

I'm having a problem with my simple code, im new, heres the code: local button = game.StarterGui.LoadingGui.MainCanvas.LoadingSequence.Elements.Skip.Button if button.MouseButton1Click then freemouse = false end The script should be connected to a…
0
votes
1 answer

how do i fix "attempted to call a nil value" in roblox lua

so im make a ModuleScript that uses properties from a vehicleSeat and even tho the seat does exist and studio shows me the properties im trying to read, i get "attempted to call a nil value" with no reference to where it happened in the code. im…
0
votes
1 answer

Roblox Custom Screen UI not appearing

In Roblox Studio I am trying to replace the loading screen as they explain in this documentation. However, when I run the game all it does is show the default loading screen for its max 5 seconds and does not show the custom one I made, even while…
1
2
3
8 9