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

How do you move a player?

I heard to move a player it went somewhere across the lines of this

local plr = game.Players.LocalPlayer
plr.Character:MoveTo(CFrame.new(100,100,100))

But it always gives me an error saying it's not a member!

3 comments

0

I believe MoveTo is a Vector3 not a CFrame

0

It is. A much better way would be moving the player's torso.

0

No because player walk to point

1 answer

✓ Accepted answer

Instead of using ':MoveTo()' try using ':SetPrimaryPartCFrame()'.

Something like this:

local plr = game.Players.LocalPlayer
plr.Character.PrimaryPart = player.Character.Torso
plr.Character:SetPrimaryPartCFrame(CFrame.new(100,100,100))

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