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

Rotating a player's torso on teleport?

Asked by 9 years ago

I'm looking for a way to manually rotate a player's torso just once, and I've been looking around for awhile, so I'm wondering if it's possible?

0
Just the torso or the entire player? Sparker22 190 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Well, you need to CFrame the Toros, the rest of the body parts and stuff will go with it:

Torso.CFrame=Torso.CFrame*CFrame.Angles(math.deg(), math.deg(), math.deg())

Play around with the numbers. math.deg() will convert any number into a degree of rotation.

0
CFrame.Angles() accepts radians. math.deg() converts a radian into degrees. You would use math.rad() to convert degrees into radians. Sparker22 190 — 9y
Ad

Answer this question