Advertisement
OnFireRobloxScriptin

Disabled Reset Button Local Script

Sep 14th, 2023 (edited)
5,944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. --//Get the StarterGui
  2. local StartGui = game:GetService("StarterGui") --Variable for the StarterGui
  3.  
  4. repeat --Self Explanitory
  5.     local disabled = pcall(function() --Creates a Pcall (Protected Call) to catch errors in case the reset button hasn't loaded
  6.         StartGui:SetCore("ResetButtonCallback", false) --Disables the reset button
  7.     end)
  8.     task.wait(1) --wait 1 second until another attempt to disabled the reset button
  9. until disabled --keep trying to disabled the reset button until it is disabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement