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

How do you move a player? [closed]

Asked by 8 years ago

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!

0
I believe MoveTo is a Vector3 not a CFrame M39a9am3R 3210 — 8y
0
It is. A much better way would be moving the player's torso. User#11440 120 — 8y
0
No because player walk to point Lem0nzzx 70 — 8y

Closed as Too Broad by M39a9am3R

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
Avectus 120
8 years ago

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))
Ad