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

help with Rotating?

Asked by 9 years ago

Ok so i am making a minimap and you may have saw my last question but i went and did some expermienting and research about it on my own and got it to half work. and what i mean by that is that it will only go halfway around rotating before it starts going the other way again so could someone explain how to possibly fix this and why it works

here is the code that semi works

local sx, sy, sz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = game.Workspace.CurrentCamera.CoordinateFrame:components()

local Y = math.asin(m02)

script.Parent.Frame.Rotation = math.deg(Y)
0
nvm i figured it out i used this which was really helpful http://wiki.roblox.com/index.php?title=Euler_angles ProfessorSev 220 — 9y

Answer this question