Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is my WaitForChild is nil in my local script?

local toolToBeCloned = game.ServerStorage:WaitForChild("StrongFist",1):WaitForChild("Fist",1)

error: Players.TheBuliderMC.Backpack.Mighty Sandwich.MainStuff:10: attempt to index nil with 'WaitForChild' - Client - MainStuff:10

This is in a local script

1 answer

✓ Accepted answer

You cant access server storage in a local script, use ReplicatedStorage or a server script.

1 comment

0

oohh! thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.