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

Anchored when joined?

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!

1 comment

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!

1 answer

✓ Accepted answer

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

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