Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local player = Players.LocalPlayer
- local StarterGui = game:GetService("StarterGui")
- StarterGui:SetCore("SendNotification", {
- Title = "Made By bruhmoments#5852",
- Text = "Fake Lag Loaded!",
- Duration = math.huge, -- Infinite duration might not work in some cases, so you can set it to a large number like 99999
- Button1 = "Okay"
- })
- warn("Fake Lag Loaded!")
- local function createGUI()
- local ScreenGui = Instance.new("ScreenGui")
- local DraggableButton = Instance.new("TextButton")
- local TextBoxWait = Instance.new("TextBox")
- local TextBoxDelay = Instance.new("TextBox")
- local KeyBindBox = Instance.new("TextBox")
- ScreenGui.Name = "FakeLagGUI"
- ScreenGui.Parent = game.CoreGui
- -- Position FakeLag button in the top left
- DraggableButton.Parent = ScreenGui
- DraggableButton.BackgroundColor3 = Color3.new(0, 0, 0)
- DraggableButton.Size = UDim2.new(0, 100, 0, 50)
- DraggableButton.Position = UDim2.new(0, 10, 0, 10)
- DraggableButton.Text = "FakeLag: OFF"
- DraggableButton.TextColor3 = Color3.new(1, 1, 1)
- DraggableButton.BorderSizePixel = 0
- DraggableButton.Font = Enum.Font.SourceSans
- DraggableButton.TextSize = 18
- DraggableButton.AutoButtonColor = false
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 10)
- UICorner.Parent = DraggableButton
- TextBoxWait.Parent = ScreenGui
- TextBoxWait.Size = UDim2.new(0, 100, 0, 30)
- TextBoxWait.Position = UDim2.new(0, 120, 0, 10)
- TextBoxWait.PlaceholderText = "Wait Time"
- TextBoxWait.Text = "0.05"
- TextBoxWait.TextColor3 = Color3.new(1, 1, 1)
- TextBoxWait.BackgroundColor3 = Color3.new(0, 0, 0)
- TextBoxWait.BackgroundTransparency = 0.5
- TextBoxDelay.Parent = ScreenGui
- TextBoxDelay.Size = UDim2.new(0, 100, 0, 30)
- TextBoxDelay.Position = UDim2.new(0, 230, 0, 10)
- TextBoxDelay.PlaceholderText = "Delay Time"
- TextBoxDelay.Text = "0.4"
- TextBoxDelay.TextColor3 = Color3.new(1, 1, 1)
- TextBoxDelay.BackgroundColor3 = Color3.new(0, 0, 0)
- TextBoxDelay.BackgroundTransparency = 0.5
- KeyBindBox.Parent = ScreenGui
- KeyBindBox.Size = UDim2.new(0, 100, 0, 30)
- KeyBindBox.Position = UDim2.new(0, 340, 0, 10)
- KeyBindBox.PlaceholderText = "Rebind Key"
- KeyBindBox.Text = "Z"
- KeyBindBox.TextColor3 = Color3.new(1, 1, 1)
- KeyBindBox.BackgroundColor3 = Color3.new(0, 0, 0)
- KeyBindBox.BackgroundTransparency = 0.5
- local FakeLag = false
- local waitTime = tonumber(TextBoxWait.Text) or 0.05
- local delayTime = tonumber(TextBoxDelay.Text) or 0.4
- local fakeLagKey = Enum.KeyCode.Z -- Default keybind
- DraggableButton.MouseButton1Click:Connect(function()
- FakeLag = not FakeLag
- DraggableButton.Text = FakeLag and "FakeLag: ON" or "FakeLag: OFF"
- end)
- TextBoxWait.FocusLost:Connect(function()
- waitTime = tonumber(TextBoxWait.Text) or waitTime
- end)
- TextBoxDelay.FocusLost:Connect(function()
- delayTime = tonumber(TextBoxDelay.Text) or delayTime
- end)
- KeyBindBox.FocusLost:Connect(function()
- local inputKey = KeyBindBox.Text:upper()
- for _, key in pairs(Enum.KeyCode:GetEnumItems()) do
- if key.Name == inputKey then
- fakeLagKey = key
- break
- end
- end
- end)
- coroutine.wrap(function()
- while wait(waitTime) do
- if FakeLag then
- local character = player.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- character.HumanoidRootPart.Anchored = true
- wait(delayTime)
- character.HumanoidRootPart.Anchored = false
- end
- end
- end
- end)()
- UserInputService.InputBegan:Connect(function(input)
- if input.KeyCode == fakeLagKey then
- FakeLag = not FakeLag
- DraggableButton.Text = FakeLag and "FakeLag: ON" or "FakeLag: OFF"
- end
- end)
- end
- player.CharacterAdded:Connect(function()
- if game.CoreGui:FindFirstChild("FakeLagGUI") then
- game.CoreGui.FakeLagGUI:Destroy()
- end
- createGUI()
- end)
- createGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement