Advertisement
Vortex23

IY / Rejoin

Aug 14th, 2024
1,377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. Players = cloneref(game:GetService("Players"))
  2. TeleportService = cloneref(game:GetService("TeleportService"))
  3. PlaceId, JobId = game.PlaceId, game.JobId
  4.  
  5. if #Players:GetPlayers() <= 1 then
  6.     Players.LocalPlayer:Kick("\nRejoining...")
  7.     wait()
  8.     TeleportService:Teleport(PlaceId, Players.LocalPlayer)
  9. else
  10.     TeleportService:TeleportToPlaceInstance(PlaceId, JobId, Players.LocalPlayer)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement