-- Connect to button click button.MouseButton1Click:Connect(function() RejoinService:Rejoin() end)
local debounce = false button.MouseButton1Click:Connect(function() if debounce then return end debounce = true Rejoin Button Script
– your players will thank you when that lag spike hits and they're back in action with one click. -- Connect to button click button
-- Reset debounce after a few seconds (optional) task.wait(5) debounce = false end) Ask the player before rejoining: Rejoin Button Script