Well I'm attempting to make the character not move when he or she is spawned. I am having trouble due to not even knowing where to begin... Can someone help?
Put a LocalScript in StarterGui and put this in it:
1 | player = game.Players.LocalPlayer --This gets the Player |
2 |
3 | player.Character.Humanoid.WalkSpeed = 0 --This changes the WalkSpeed of the player. |
That would be
1 | game:GetService( "Players" ).Character.Torso.Anchored = true |
Put this in a local script
I just finished a script on this. This has to be a normal script for it to work.
1 | game.Players.PlayerAdded:connect( function (player) -- When player enters |
2 | player.CharacterAdded:connect( function (character) -- When the character added |
3 | local humanoid = character:FindFirstChild( "Humanoid" ) -- Find if the player is a humanoid |
4 | humanoid.WalkSpeed = 0 -- Walkspeed of 0 means it gets anchored, or doesn't move. |
5 | end ) |
6 | end ) |