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

how do i move a player to a part with animation?

I currently have a script:

Workspace.Player.Humanoid:MoveTo(Workspace.Part.Position, Workspace.Part)

But it doesn't work, the player can just walk away and i don't want that. Even if i set the walkspeed to 0 it still doesn't work

Can someone help me with this script and make a player go to whatever part even in the air

and the player can't move

1 comment

0

Set their walkspeed to 0.

1 answer

game.Workspace.[PLAYERNAME].HumanoidRootPart.CFrame = CFrame.New(game.Workspace.[PARTNAMEHERE].CFrame]
game.Workspace.[PLAYERNAME].Humanoid.WalkSpeed = 0
wait(2)
game.Workspace.[PLAYERNAME].Humanoid.WalkSpeed = 16

2 comments

0

It doesn't work

0

Try Changing "game.Workspace.{PARTNAMEHERE].Position"

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