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

Why is my part's rotation not working at all?

script.Parent.Orientation = CFrame.new(5, 7, 5)

Very simple, im just new to CFrame.

4 comments

0

try changing CFrame.new to Vector3.new

0

it now works

0

thanks

0

whats the difference?

1 answer

You have to use part.CFrame * CFrame.Angles() since it's basically adding the angles and the position except you use multiplication instead of using +. Also, you're supposed to use math.rad since it converts radiance into degrees.

script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(math.rad(5), math.rad(7), math.rad(5))

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