MaxproGlitcher

Auto rejoint Test By Max

Dec 5th, 2024
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1.  
  2. local gs = game:GetService 'GuiService'
  3. local reconnectDisabledList = {
  4. [Enum.ConnectionError.DisconnectLuaKick] = true,
  5. [Enum.ConnectionError.DisconnectSecurityKeyMismatch] = true,
  6. [Enum.ConnectionError.DisconnectNewSecurityKeyMismatch] = true,
  7. [Enum.ConnectionError.DisconnectDuplicateTicket] = true,
  8. [Enum.ConnectionError.DisconnectWrongVersion] = true,
  9. [Enum.ConnectionError.DisconnectProtocolMismatch] = true,
  10. [Enum.ConnectionError.DisconnectBadhash] = true,
  11. [Enum.ConnectionError.DisconnectIllegalTeleport] = true,
  12. [Enum.ConnectionError.DisconnectDuplicatePlayer] = true,
  13. [Enum.ConnectionError.DisconnectCloudEditKick] = true,
  14. [Enum.ConnectionError.DisconnectOnRemoteSysStats] = true,
  15. [Enum.ConnectionError.DisconnectRaknetErrors] = true,
  16. [Enum.ConnectionError.PlacelaunchFlooded] = true,
  17. [Enum.ConnectionError.PlacelaunchHashException] = true,
  18. [Enum.ConnectionError.PlacelaunchHashExpired] = true,
  19. [Enum.ConnectionError.PlacelaunchUnauthorized] = true,
  20. [Enum.ConnectionError.PlacelaunchUserLeft] = true,
  21. [Enum.ConnectionError.PlacelaunchRestricted] = true,
  22. }
  23.  
  24. gs.ErrorMessageChanged:connect(
  25. function()
  26. local error_code = gs:GetErrorCode()
  27. local error_type = gs:GetErrorType()
  28. if error_type == Enum.ConnectionError.DisconnectErrors and
  29. not reconnectDisabledList[error_code] then
  30. print('Disconnect registered!')
  31. while task.wait(5) do
  32. game:GetService 'TeleportService':TeleportToPlaceInstance(
  33. game.PlaceId, game.JobId)
  34. end
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment