Hi, so for a compass I’m making, I need to figure out a way I can get a number from 0-360 that’s aligned with the rotation of the character. When I tried this previously, it did work, but after every like 90 degrees it went back to 0…
Any ideas? Thanks.
Try getting the HumanoidRootPart’s rotation. I think it’s the Y axis that you want to read from.
local look = character.HumanoidRootPart.CFrame.LookVector local angle = math.atan2(look.X, look.Z) print(math.deg(angle) % 360)