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

How to make a character not move when spawned?

Asked by
Ulysies 50
9 years ago

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?

0
you can change the walkspeed value of the character's humanoid, either through the event CharacterAdded or with a local script in playergui aquathorn321 858 — 9y

3 answers

Log in to vote
0
Answered by
FiredDusk 1466 Moderation Voter
9 years ago

Put a LocalScript in StarterGui and put this in it:

player = game.Players.LocalPlayer --This gets the Player

player.Character.Humanoid.WalkSpeed = 0 --This changes the WalkSpeed of the player.
Ad
Log in to vote
0
Answered by 9 years ago

That would be

game:GetService("Players").Character.Torso.Anchored = true

Put this in a local script

Log in to vote
0
Answered by
Sxerks3 65
9 years ago

I just finished a script on this. This has to be a normal script for it to work.

game.Players.PlayerAdded:connect(function(player) -- When player enters
    player.CharacterAdded:connect(function(character) -- When the character added
        local humanoid = character:FindFirstChild("Humanoid") -- Find if the player is a humanoid
        humanoid.WalkSpeed = 0 -- Walkspeed of 0 means it gets anchored, or doesn't move.
    end)
end)

Answer this question