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

How to use vector3 on a player model?

Asked by 9 years ago

How do I use a vector3 on a player, it's been confusing me.

1 answer

Log in to vote
0
Answered by
funyun 958 Moderation Voter
9 years ago

If by that you mean position, you're going to use one of the following:

--Try putting one of these in the command line when playing in Studio. They all do the same thing.
game.Players.Player.Character:MoveTo(Vector3.new(0, 1000, 0))
game.Players.Player.Character:SetPrimaryPartCFrame(Crame.new(0, 1000, 0))
game.Players.Player.Character.PrimaryPart.CFrame = CFrame.new(0, 1000, 0)
1
You could also change the Torso's CFrame as all the player's parts are welded to it via Motor6Ds, but MoveTo is the quickest one for Vector3s. Spongocardo 1991 — 9y
Ad

Answer this question