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

Why doesn't this rotation script work on the parent of the script?

I am trying to learn basic rotation and I tried make a script that rotates a part 180 degrees and this is what I did, but I am not sure what else to do since it doesn't really work

wait(3)
script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0, math.pi, 0)

1 answer

✓ Accepted answer

It does rotate, it just looks the same cause you rotated it by 180.

3 comments

0

so it actually did rotate 180?

0

Yes. change it to math.rad(90) and it works too.

0

math.pi / 2 rotates it by 90 degrees as well. That's just radians. math.rad() changes the number between it in degrees into radians so that might be easier to do.

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