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)
-- 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)