pl = game.Players.LocalPlayer ch = pl.Character tg = workspace.tar cam = workspace.Camera sg = script.Parent f = sg.Frame while wait() do camcord = cam.CoordinateFrame --xdelta = tg.Position.X - camcord.p.X --zdelta = tg.Position.Z - camcord.p.Z xdelta = tg.Position.X - ch.Torso.Position.X zdelta = tg.Position.Z - ch.Torso.Position.Z theta1 = -math.deg(math.atan2(xdelta, zdelta)) camlook = camcord.lookVector theta2 = math.deg(math.atan2(camlook.x, camlook.z)) f.Rotation = theta1 + theta2 - 90 --f.Rotation = theta2 print("theta1: "..theta1) print("theta2: "..theta2) print("Result: "..f.Rotation - 90) end