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

How do i rotate a cylinder 90 degrees?

Okay i'm trying to rotate this 90 degrees but its not working

shield = script.Shield:Clone()
shield.Parent = workspace
shield.Name = char.Name.."'s Shield"
shield.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-7,0)

I've tried adding * CFrame.Angles (0,90,0) but it doesn't do a 90 degree turn. The shield is rotated wrong, when i try using rotation, i cframe it and it goes back to the original rotation

1 answer

CFrame.Angles needs radians. To simply do this, do

shield.CFrame = CFrame.Angles(0,math.rad(80),0)

Don't ask me why it needs radians, roblox likes making things complicated.

Hope this helps!

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