-- LocalScript inside a restricted UI element local player = game.Players.LocalPlayer local function onUnauthorizedAccess() -- Create a brief "lag" effect by freezing the thread local startTime = os.clock() while os.clock() - startTime < 2 do -- Busy wait for 2 seconds to simulate a freeze end -- Disconnect the player with a custom message player:Kick("GET REKT xD") end -- Trigger the function onUnauthorizedAccess()