Master_Jynx

Untitled

Mar 12th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local CurrentY = 62
  2.  
  3. function moveUp()
  4. print("true")
  5. CurrentY = CurrentY + 1
  6. end
  7. function moveDown()
  8. print("false")
  9. CurrentY = CurrentY - 1
  10. end
  11.  
  12. if (CurrentY ~= Y1) then
  13.     while (CurrentY ~= Y1) do
  14. a = (CurrentY < Y1) and moveUp() or moveDown()
  15.     end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment