don't know how to explain but lemme show
https://gyazo.com/8629154041c648cab8a9f1d488cb956a <- error
https://gyazo.com/08e5bd0e1629ade5e274c4e81e101ea2 <- the line
https://gyazo.com/c20fdbc3acfb1c57db67067c08157bdb <- show thats it exsist
and yes i tried with waitforchild xd
COMMUNITY QUESTION
hmm no errors and the "error" isn't a error someone help?
1 answer
This happens to me all the time, What I suggest doing is doing something like this in the script which gives you the error (at the very top, or close)
local ScriptedSpot = Instance.new("ValueTypeHere", game:GetService("ServerStorage"):WaitForChild("PlayerMoney")
ScriptedSpot.Name = "ScriptedSpot"
-- set it's value or something
Then when you go to call upon ScriptedSpot, you don't say game:GetService("ServerStorage").PlayerMoney:WaitForChild("ScriptedSpot")
You use the variable you declared, so that way it can't be nil because the script created it, so there is no need to find it.
This discussion is preserved as it was. New answers, comments, and votes are closed.
