Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago
-- 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)

0
it still moves the part when i try using that code mdbaten2 24 — 4y
Ad

Answer this question