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

how do i move a player to a part with animation? [closed]

Asked by 6 years ago
Edited 6 years ago

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

0
Set their walkspeed to 0. UgOsMiLy 1074 — 6y

Closed as Not Constructive by M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 6 years ago
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
0
It doesn't work rascist_paperz -45 — 6y
0
Try Changing "game.Workspace.{PARTNAMEHERE].Position" wilsonsilva007 373 — 6y
Ad