Advertisement
qnidnqwid

Fake Lag

Mar 19th, 2025 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.34 KB | Source Code | 0 0
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3. local player = Players.LocalPlayer
  4.  
  5. local StarterGui = game:GetService("StarterGui")
  6.  
  7. StarterGui:SetCore("SendNotification", {
  8.     Title = "Made By bruhmoments#5852",
  9.     Text = "Fake Lag Loaded!",
  10.     Duration = math.huge, -- Infinite duration might not work in some cases, so you can set it to a large number like 99999
  11.     Button1 = "Okay"
  12. })
  13. warn("Fake Lag Loaded!")
  14.  
  15. local function createGUI()
  16.     local ScreenGui = Instance.new("ScreenGui")
  17.     local DraggableButton = Instance.new("TextButton")
  18.     local TextBoxWait = Instance.new("TextBox")
  19.     local TextBoxDelay = Instance.new("TextBox")
  20.     local KeyBindBox = Instance.new("TextBox")
  21.    
  22.     ScreenGui.Name = "FakeLagGUI"
  23.     ScreenGui.Parent = game.CoreGui
  24.  
  25.     -- Position FakeLag button in the top left
  26.     DraggableButton.Parent = ScreenGui
  27.     DraggableButton.BackgroundColor3 = Color3.new(0, 0, 0)
  28.     DraggableButton.Size = UDim2.new(0, 100, 0, 50)
  29.     DraggableButton.Position = UDim2.new(0, 10, 0, 10)
  30.     DraggableButton.Text = "FakeLag: OFF"
  31.     DraggableButton.TextColor3 = Color3.new(1, 1, 1)
  32.     DraggableButton.BorderSizePixel = 0
  33.     DraggableButton.Font = Enum.Font.SourceSans
  34.     DraggableButton.TextSize = 18
  35.     DraggableButton.AutoButtonColor = false
  36.    
  37.     local UICorner = Instance.new("UICorner")
  38.     UICorner.CornerRadius = UDim.new(0, 10)
  39.     UICorner.Parent = DraggableButton
  40.  
  41.     TextBoxWait.Parent = ScreenGui
  42.     TextBoxWait.Size = UDim2.new(0, 100, 0, 30)
  43.     TextBoxWait.Position = UDim2.new(0, 120, 0, 10)
  44.     TextBoxWait.PlaceholderText = "Wait Time"
  45.     TextBoxWait.Text = "0.05"
  46.     TextBoxWait.TextColor3 = Color3.new(1, 1, 1)
  47.     TextBoxWait.BackgroundColor3 = Color3.new(0, 0, 0)
  48.     TextBoxWait.BackgroundTransparency = 0.5
  49.    
  50.     TextBoxDelay.Parent = ScreenGui
  51.     TextBoxDelay.Size = UDim2.new(0, 100, 0, 30)
  52.     TextBoxDelay.Position = UDim2.new(0, 230, 0, 10)
  53.     TextBoxDelay.PlaceholderText = "Delay Time"
  54.     TextBoxDelay.Text = "0.4"
  55.     TextBoxDelay.TextColor3 = Color3.new(1, 1, 1)
  56.     TextBoxDelay.BackgroundColor3 = Color3.new(0, 0, 0)
  57.     TextBoxDelay.BackgroundTransparency = 0.5
  58.    
  59.     KeyBindBox.Parent = ScreenGui
  60.     KeyBindBox.Size = UDim2.new(0, 100, 0, 30)
  61.     KeyBindBox.Position = UDim2.new(0, 340, 0, 10)
  62.     KeyBindBox.PlaceholderText = "Rebind Key"
  63.     KeyBindBox.Text = "Z"
  64.     KeyBindBox.TextColor3 = Color3.new(1, 1, 1)
  65.     KeyBindBox.BackgroundColor3 = Color3.new(0, 0, 0)
  66.     KeyBindBox.BackgroundTransparency = 0.5
  67.    
  68.     local FakeLag = false
  69.     local waitTime = tonumber(TextBoxWait.Text) or 0.05
  70.     local delayTime = tonumber(TextBoxDelay.Text) or 0.4
  71.     local fakeLagKey = Enum.KeyCode.Z -- Default keybind
  72.    
  73.     DraggableButton.MouseButton1Click:Connect(function()
  74.         FakeLag = not FakeLag
  75.         DraggableButton.Text = FakeLag and "FakeLag: ON" or "FakeLag: OFF"
  76.     end)
  77.  
  78.     TextBoxWait.FocusLost:Connect(function()
  79.         waitTime = tonumber(TextBoxWait.Text) or waitTime
  80.     end)
  81.  
  82.     TextBoxDelay.FocusLost:Connect(function()
  83.         delayTime = tonumber(TextBoxDelay.Text) or delayTime
  84.     end)
  85.  
  86.     KeyBindBox.FocusLost:Connect(function()
  87.         local inputKey = KeyBindBox.Text:upper()
  88.         for _, key in pairs(Enum.KeyCode:GetEnumItems()) do
  89.             if key.Name == inputKey then
  90.                 fakeLagKey = key
  91.                 break
  92.             end
  93.         end
  94.     end)
  95.  
  96.     coroutine.wrap(function()
  97.         while wait(waitTime) do
  98.             if FakeLag then
  99.                 local character = player.Character
  100.                 if character and character:FindFirstChild("HumanoidRootPart") then
  101.                     character.HumanoidRootPart.Anchored = true
  102.                     wait(delayTime)
  103.                     character.HumanoidRootPart.Anchored = false
  104.                 end
  105.             end
  106.         end
  107.     end)()
  108.  
  109.     UserInputService.InputBegan:Connect(function(input)
  110.         if input.KeyCode == fakeLagKey then
  111.             FakeLag = not FakeLag
  112.             DraggableButton.Text = FakeLag and "FakeLag: ON" or "FakeLag: OFF"
  113.         end
  114.     end)
  115. end
  116.  
  117. player.CharacterAdded:Connect(function()
  118.     if game.CoreGui:FindFirstChild("FakeLagGUI") then
  119.         game.CoreGui.FakeLagGUI:Destroy()
  120.     end
  121.     createGUI()
  122. end)
  123.  
  124. createGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement