My script isn’t working. I feel like it’s something obvious, but I don’t yet understand everything about lua coding. It says:
12:28:35.490 Fame is not a valid member of Folder “Workspace.MrProYouTube.WoodCam.Values” - Server - RemoteHandler:5
– local ReplicatedStorage = game.ReplicatedStorage game.ReplicatedStorage.RemoteEvents.Fame.OnServerEvent:Connect(function(player, valueFolder) if player.Debounce.Value == false then player.leaderstats.Fame.Value = player.leaderstats.Fame.Value + valueFolder.Fame.Value*(player.leaderstats.Rebirths.Value + 1) player.Debounce.Value = true wait(valueFolder.Cooldown.Value) player.Debounce.Value = false end end)
I found a typo and fixed it, but now it says;
" 13:11:05.401 fame is not a valid member of Folder “Players.MrProYouTube.leaderstats” - Server - RemoteHandler:5"
&
“13:11:06.485 fame is not a valid member of Folder “Players.MrProYouTube.leaderstats” - Server - RemoteHandler:5”
Why do you have it wrapping your function, up there where it says
is the problem. WaitForChild is used to Wait for an object to load and the code wont be yielded unlike repeat wait() until obj name. Basically the code queues for a property of an object to change once it’s loaded. WaitForChild is not used for functions, sorry if im slow or cant explain good, i am on a mobile device currently and I write sloppily.