1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function rotation(id) 	local rot = player(id,"rot") 	if rot > -30 and rot < 30 then 		print("up") 	elseif rot > 30 and rot < 60 then 		print("u-r") 	elseif rot > 60 and rot < 120 then 		print("right") 	elseif rot > 120 and rot < 150 then 		print("r-d") 	elseif rot > 150 and rot > -120 then 		print("down") 	elseif rot > -120 and rot < -150 then 		print("l-d") 	elseif rot > -60 and rot > -120 then 		print("left") 	elseif rot > -150 and rot < -30 then 		print("l-u") 	end end