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

How would I CFrame rotate a part on the parts axis? [Solved]

I have the typical

	CFrame.Angles(0,0,0)

But I cant figure out what method to use. Any help?

1 answer

✓ Accepted answer

part.CFrame = part.CFrame * CFrame.Angles(0, 0, 0)

Remember, the inputted numbers have to be in radians, so: ... CFrame.Angles(0, math.rad(90), 0) will rotate it on the Y axis 90 degrees.

4 comments

0

So it already rotates on the parts axis?

0

Yes, it rotates on an axis. It takes some experimenting to find how it works exactly. Because the Y axis is rotating AROUND the Y axis, etc.

0

Facepalm Lol, brain fart I guess. Thanks again.

0

It happens even to the best of us. xD

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