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

Move player to an point by stepping on a part doens't work?

Asked by 8 years ago

Im trying to make the Player, Move to an Specified Part, then after 5 seconds Move to other.


local Member = game.Players.LocalPlayer
local Target = game.Workspace.Here
local Out = game.Workspace.out

function onTouch(hit)
    workspace.Member.Humanoid:MoveTo(Target.Position, Target)
    wait(5)
    workspace.Member.Humanoid:MoveTo(Out.Position, Out)
end

script.Parent.Touched:connect(onTouch)

And yes. The Script is in a LocalPlayer

The thing is that when the part it's touched. Nothing happengs.

Answer this question