Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local TeleportService = game:GetService("TeleportService")
- local PlaceId, Jobid = game.PlaceId, game.JobId
- game:GetService("GuiService").ErrorMessageChanged:Connect(function()
- if #Players:GetPlayers() <= 1 then
- Players.LocalPlayer:Kick("\nRejoining...")
- task.wait()
- TeleportService:Teleport(PlaceId, Players.LocalPlayer)
- else
- TeleportService:TeleportToPlaceInstance(PlaceId, JobId, Players.LocalPlayer)
- end
- end)
- game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Auto Rejoin", Text = "Auto Rejoin Enabled!"})
Advertisement
Add Comment
Please, Sign In to add comment