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

how to rotate an object through a script on a 30 degree angle?

Asked by 2 years ago

i was thinking about it and trying alot to find the math behind it, maybe its simple and im just not getting it but like, rotating an object on a 90 degree angle or 180 or 360 degree angle is easy cuz u just add up on one axis, but how the heck do u rotate an object constantly on a 30 degree angle, so it would always rotate, like fr, help me please

0
use CFrame.Angles ZeroToH3ro 82 — 2y
0
bruh fr? u think i dont know about cframe.angles -_-, bro im talking about constantly running it in a loop while rotating on a 30 degree angle, its not so simple lol, cuz u have to add up on multiple axes not on one -_- xbloodyguyx 10 — 2y
0
its actually simple tho, ina while loop just times the CFrame angle by ur desired angle or u can use RunService to do it. either way, its not too complicated ZeroToH3ro 82 — 2y
0
then show me how to lol , i wanna see you do it xbloodyguyx 10 — 2y
View all comments (2 more)
0
why is doing it with 90 degrees any easier? boredlake 256 — 2y
0
ok i guess u really didnt read what ive typed, making it rotate on an 90 degree angle is way easier since all u have to do is to add up on one axes, to rotate an object on 30 degrees or 60 for example u have to add up on multiple axes at the same time to make it happen, and what im asking is in what ammount should i be adding the value on the 2 axes for the object to rotate smoothly xbloodyguyx 10 — 2y

Answer this question