I currently am trying to create a script to detect if a player does a flip on the bike. My goal was to have the script set a certain set of variables to true if they make it to certain points along the axis in orientation (1/4 flip would be 90, 1/2 would be 180, full would be 360 returning to the original point). My problem is, I can’t seem to figure out how to get the angle to 360 degrees. As you can see in the gif, it goes up to 90 and then reverses. I want it to go up to 360 and then hit 0 or visa versa.
while true do
wait()
local x, y, z = script.Parent.Chassis.Engine.CFrame:ToOrientation()
print(math.deg(x))
end
That is what i did just to print the angle.