Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- if #tArgs < 2 then
- if #tArgs < 1 then
- print("Teleport Username Missing")
- return
- else
- print("Teleport Key Missing")
- return
- end
- end
- username = tArgs[1]:lower()
- key = tArgs[2]
- function teleport(side)
- rs.setOutput(side, true)
- sleep(0.5)
- rs.setOutput(side, false)
- end
- if username == "luca" then
- print("Trying to Teleport Luca")
- if key == "1708" then
- print("Teleported")
- teleport("left")
- else
- print("failed. wrong key")
- end
- elseif username == "justin" then
- print("Trying to Teleport Justin")
- if key == "42" then
- print("Teleported")
- teleport("right")
- else
- print("failed. wrong key")
- end
- else
- print("User not found")
- end
Add Comment
Please, Sign In to add comment