Advertisement
Guest User

startup.lua

a guest
Apr 10th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. commands.exec("gamerule commandBlockOutput false")
  2. commands.exec("/scoreboard objectives add JustJoined stat.leaveGame")
  3.  
  4. local function teleport()
  5.     commands.exec("/tp @a[score_JustJoined_min=1] -220 79 276")
  6.     sleep(0.01)
  7. end
  8.  
  9. local function update()
  10.     commands.exec("/scoreboard players set @a JustJoined 0")
  11.     sleep(0.01)
  12. end
  13.  
  14. while true do
  15. parallel.waitForAny(teleport, update)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement