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

I was messing with cframe, and when i try to rotate part. it moves position aswell?

I tried to change the parts angle, but it moves the position and the angle for some reason. Can someone tell me what I did wrong?

script.Parent.CFrame = CFrame.Angles(0, math.rad(45), 0)

1 answer

-- i am not sure what CFrame.Angles really dos but here is what i came up with if you want to just change its rotation

script.Parent.CFrame =  CFrame.fromEulerAnglesXYZ(15,15,51)

1 comment

0

it still moves the part when i try using that code

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