I'm trying to add a script I made quite some time ago into the starterpack so that people spawn and the script loads. It is a grapple hook script, and I honestly have no idea why it isn't working. The top of the script is this:
plr = script.Parent.Parent
Char = plr.Character
mouse = plr:GetMouse()
tor = Char.Torso
larm = Char['Left Arm']
rarm = Char['Right Arm']
swagyolo = false
So when I test it's fine, but when I publish and play the game it comes up with "Torso is not a valid member of Model" plez help?

1 comment
I fixed it, it was because I did not use WaitForChild. The script ran before my torso was created, causing it to error.