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

i am triying to rotate a model but it does not go to the right rotation please help ?

this is what i have the the part orientation is at 0,90,0 but the model gets set to 116.62 the position works tho

clone:SetPrimaryPartCFrame(CFrame.new(part.position)*CFrame.Angles(part.Orientation.x,part.Orientation.y,part.Orientation.z))

1 comment

0

clone:SetPrimaryPartCFrame(CFrame.new(part.position)*CFrame.Angles(math.rad(part.Orientation.x),math.rad(part.Orientation.y),math.rad(part.Orientation.z)))

1 answer

✓ Accepted answer

CFrame.Angles requires you to input numbers in radiants in order to work properly.

You can turn a number into radiants with math.rad()

clone:SetPrimaryPartCFrame(CFrame.new(part.position) * CFrame.Angles(0,math.rad(90),0))

Note that you don't have to do math.rad(0) as it's equal to 0 anyways

2 comments

0

;/

0

thanks for the help

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