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

MoveTo(Vector3)

Could I make a model face a certain direction with :MoveTo()? Like :MoveTo(CFrame.new(Pos,Rotation))?

Or is there another method for model CFraming?

1 answer

✓ Accepted answer

You can make a model face a given Vector3 position using code like this:

MyPart.CFrame = CFrame.new(MyPart.Position, Vector3.new(X,Y,Z))

For example, to make a player face a part called "SpawnFocus" you could do this:

player.Character.Torso.CFrame = CFrame.new(player.Character.Torso.Position, workspace.SpawnFocus.Position)

I hope this helps!

1 comment

1

Yes, it was what I was asking for. Thank you.

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