Iligrdbjkilaryiknvcx

Untitled

Aug 14th, 2025
5,708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | Gaming | 0 0
  1. -- LocalScript inside StarterGui
  2.  
  3. local player = game.Players.LocalPlayer
  4. local playerGui = player:WaitForChild("PlayerGui")
  5.  
  6. -- Create ScreenGui
  7. local screenGui = Instance.new("ScreenGui")
  8. screenGui.ResetOnSpawn = false -- Keeps GUI after respawn
  9. screenGui.Parent = playerGui
  10.  
  11. -- Create Lag Button
  12. local button = Instance.new("TextButton")
  13. button.Size = UDim2.new(0, 80, 0, 40) -- Small size
  14. button.Position = UDim2.new(1, -90, 0.5, -20) -- Right side, vertically centered
  15. button.Text = "Lag"
  16. button.TextScaled = true
  17. button.Parent = screenGui
  18.  
  19. -- Freeze function
  20. local function fakeLag(seconds)
  21.     local start = tick()
  22.     while tick() - start < seconds do
  23.         -- Busy-wait to simulate freeze
  24.     end
  25. end
  26.  
  27. -- Connect click
  28. button.MouseButton1Click:Connect(function()
  29.     fakeLag(1) -- Freeze for 1 second
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment