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)

3 comments
so it actually did rotate 180?
Yes. change it to math.rad(90) and it works too.
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.