feeeew

ALS Seamless Retry Fix

Oct 10th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. local p = game:GetService("Players").LocalPlayer
  2. local r = game:GetService("ReplicatedStorage")
  3. local Folder = p:WaitForChild("PlayerGui")
  4. local Settings = Folder:WaitForChild("Settings")
  5. local SV = Settings:WaitForChild("SeamlessRetry")
  6.  
  7. local End, Max = 0, 4
  8.  
  9. local function setSeamlessRetry(state)
  10.     r.Remotes.SetSettings:InvokeServer("SeamlessRetry")
  11.     SV.Value = state
  12. end
  13.  
  14. if End == 0 then
  15.     if not SV.Value then
  16.         setSeamlessRetry(true)
  17.     end
  18. end
  19.  
  20. Folder.ChildAdded:Connect(function(c)
  21.     if c.Name == "EndGameUI" then
  22.         End += 1
  23.         if End >= Max then
  24.             setSeamlessRetry(false)
  25.             task.wait(1)
  26.             if not SV.Value then
  27.                 r.Remotes.RestartMatch:FireServer()
  28.             end
  29.             End = 0
  30.             task.wait(2)
  31.             setSeamlessRetry(true)
  32.         end
  33.     end
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment