Guest User

teleport.lua

a guest
Mar 30th, 2026
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. local tArgs = { ... }
  2. if #tArgs < 2 then
  3.  if #tArgs < 1 then
  4.   print("Teleport Username Missing")
  5.   return
  6.  else
  7.   print("Teleport Key Missing")
  8.   return
  9.  end
  10. end
  11.  
  12. username = tArgs[1]:lower()
  13. key = tArgs[2]
  14.  
  15. function teleport(side)
  16.  rs.setOutput(side, true)
  17.  sleep(0.5)
  18.  rs.setOutput(side, false)
  19. end
  20.  
  21. if username == "luca" then
  22.  print("Trying to Teleport Luca")
  23.  if key == "1708" then
  24.   print("Teleported")
  25.   teleport("left")
  26.  else
  27.   print("failed. wrong key")
  28.  end
  29. elseif username == "justin" then
  30.  print("Trying to Teleport Justin")
  31.  if key == "42" then
  32.   print("Teleported")
  33.   teleport("right")
  34.  else
  35.   print("failed. wrong key")
  36.  end
  37. else
  38.  print("User not found")
  39. end
  40.  
Add Comment
Please, Sign In to add comment