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

Anchored when joined?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago

I have changed up this script. This suppose to have anchored the body when player joins!

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        player.anchored=true
    end)
end)    

whats wrong?

I always accept answers!

0
An answer has allready been answered and should work but I will explain what's wrong here. When you fire the characteradded event the argument is focusing on the player (the model which all parts of a character are stored) Models do not have an anchored property. So instead like Crut24 said, Use a part inside of the character that has an anchored property, like Torso! minikitkat 687 — 8y

1 answer

Log in to vote
2
Answered by
crut24 50
8 years ago

You need to write this

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        character.Torso.Anchored = true
    end)
end)

As simple as that. Dont forget to accept answer

Ad

Answer this question