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

Rotation without object going on top of other objects?

Asked by
Netflixy 126
8 years ago
Edited 8 years ago

I'm sorry if the title was a little bit unclear, but what I am trying to do is CFrame and rotate and object, without the object moving elsewhere than the CFrame stated.

The CFrame: 7.55, 12.1, 0 and the rotation: 0, 0, 90

However, if I rotate it after I've CFramed it, it will go on top of all the other objects. And if I rotate before, the CFrame will reset the rotation.

Any suggestions?

1 answer

Log in to vote
1
Answered by 8 years ago
Edited 8 years ago
CFrame = CFrame*CFrame.Angles(math.rad(x), math.rad(y), math.rad(z))
0
Thank you very much. Netflixy 126 — 8y
Ad

Answer this question