Advertisement
KananGamer

[TFM-TROLL-LUA] Elevador

Sep 23rd, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. --[[
  2.     Author(s): Nettoork#0000, Aandreixon
  3. ]]--
  4. local config = {
  5.     x        = 400,
  6.     y        = 400,
  7.     velocity = 10
  8. }
  9. eventLoop = function()
  10.     if config.y >= 400 or config.y <= 60 then
  11.         config.velocity = -config.velocity
  12.     end
  13.     config.y = config.y + config.velocity
  14.     tfm.exec.addPhysicObject(1, config.x, config.y, {width  = 200})
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement