Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

torso anchor wont work?

Asked by 9 years ago
wait(5)
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
plr.Character.Torso.Anchored=true
end)

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

Your problem is the wait(5) at the top of your script.

If you wait five seconds before connecting the event, the first player who joins won't be anchored because the event wasn't connected when they joined the server.

Remove the wait and you should be fine.

0
Do what perci1 says. TroytheDestroyer 75 — 9y
Ad

Answer this question