Universal Script 📌
5.3k Views
1.3k Executions

Auto rejoin

Universal Script 📌
0liver
0liverFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Auto rejoin script ,If you disconnect it will rejoin Set to auto-execute.

Updates

  1. Script edited: Create script

View Raw
local gs = game:GetService 'GuiService'
local reconnectDisabledList = {
	[Enum.ConnectionError.DisconnectLuaKick] = true,
	[Enum.ConnectionError.DisconnectSecurityKeyMismatch] = true,
	[Enum.ConnectionError.DisconnectNewSecurityKeyMismatch] = true,
	[Enum.ConnectionError.DisconnectDuplicateTicket] = true,
	[Enum.ConnectionError.DisconnectWrongVersion] = true,
	[Enum.ConnectionError.DisconnectProtocolMismatch] = true,
	[Enum.ConnectionError.DisconnectBadhash] = true,
	[Enum.ConnectionError.DisconnectIllegalTeleport] = true,
	[Enum.ConnectionError.DisconnectDuplicatePlayer] = true,
	[Enum.ConnectionError.DisconnectCloudEditKick] = true,
	[Enum.ConnectionError.DisconnectOnRemoteSysStats] = true,
	[Enum.ConnectionError.DisconnectRaknetErrors] = true,
	[Enum.ConnectionError.PlacelaunchFlooded] = true,
	[Enum.ConnectionError.PlacelaunchHashException] = true,
	[Enum.ConnectionError.PlacelaunchHashExpired] = true,
	[Enum.ConnectionError.PlacelaunchUnauthorized] = true,
	[Enum.ConnectionError.PlacelaunchUserLeft] = true,
	[Enum.ConnectionError.PlacelaunchRestricted] = true,
}

gs.ErrorMessageChanged:connect(
	function()
		local error_code = gs:GetErrorCode()
		local error_type = gs:GetErrorType()
		if error_type == Enum.ConnectionError.DisconnectErrors and
			not reconnectDisabledList[error_code] then
			print('Disconnect registered!')
			while task.wait(5) do
				game:GetService 'TeleportService':TeleportToPlaceInstance(
					game.PlaceId, game.JobId)
			end
		end
	end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
53
5
Approved 1 hour ago
Key System
Script hub
127.9k
350.6k
Bumped 2 hours ago

Script hub

#7 today

KeylessVerified script badgeNo Lag Hub | KEYLESS 2026

Universal Script 📌
148
35
Approved 4 hours ago
Script hub
118
197
Approved 4 hours ago