local Players = game:GetService("Players")
local player = Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local function createGUI()
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "FakeLagGUI"
ScreenGui.Parent = player:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false
local MenuButton = Instance.new("TextButton")
MenuButton.Name = "MenuButton"
MenuButton.Size = UDim2.new(0, 120, 0, 40)
MenuButton.Position = UDim2.new(0.5, -60, 0.5, -20)
MenuButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MenuButton.TextColor3 = Color3.fromRGB(255, 255, 255)
MenuButton.Text = "FakeLag Menu"
MenuButton.Font = Enum.Font.GothamBlack
MenuButton.TextSize = 14
MenuButton.AutoButtonColor = false
MenuButton.Parent = ScreenGui
MenuButton.Active = true
MenuButton.Draggable = true
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 8)
UICorner.Parent = MenuButton
local UIStroke = Instance.new("UIStroke")
UIStroke.Color = Color3.fromRGB(80, 80, 80)
UIStroke.Thickness = 2
UIStroke.Parent = MenuButton
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 250, 0, 200)
MainFrame.Position = UDim2.new(0.5, -125, 0.5, -100)
MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MainFrame.BackgroundTransparency = 0.1
MainFrame.Parent = ScreenGui
MainFrame.Visible = false
local MainFrameCorner = Instance.new("UICorner")
MainFrameCorner.CornerRadius = UDim.new(0, 12)
MainFrameCorner.Parent = MainFrame
local MainFrameStroke = Instance.new("UIStroke")
MainFrameStroke.Color = Color3.fromRGB(100, 100, 100)
MainFrameStroke.Thickness = 2
MainFrameStroke.Parent = MainFrame
local Title = Instance.new("TextLabel")
Title.Name = "Title"
Title.Size = UDim2.new(1, 0, 0, 30)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "FAKE LAG CONTROL [fepiix]"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 16
Title.Parent = MainFrame
local ToggleButton = Instance.new("TextButton")
ToggleButton.Name = "ToggleButton"
ToggleButton.Size = UDim2.new(0.8, 0, 0, 40)
ToggleButton.Position = UDim2.new(0.1, 0, 0.2, 0)
ToggleButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleButton.Text = "OFF"
ToggleButton.Font = Enum.Font.GothamBlack
ToggleButton.TextSize = 14
ToggleButton.AutoButtonColor = false
ToggleButton.Parent = MainFrame
local ToggleCorner = Instance.new("UICorner")
ToggleCorner.CornerRadius = UDim.new(0, 8)
ToggleCorner.Parent = ToggleButton
local ToggleStroke = Instance.new("UIStroke")
ToggleStroke.Color = Color3.fromRGB(100, 100, 100)
ToggleStroke.Thickness = 1
ToggleStroke.Parent = ToggleButton
local WaitTimeLabel = Instance.new("TextLabel")
WaitTimeLabel.Name = "WaitTimeLabel"
WaitTimeLabel.Size = UDim2.new(0.4, 0, 0, 20)
WaitTimeLabel.Position = UDim2.new(0.1, 0, 0.45, 0)
WaitTimeLabel.BackgroundTransparency = 1
WaitTimeLabel.Text = "Wait Time:"
WaitTimeLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
WaitTimeLabel.Font = Enum.Font.Gotham
WaitTimeLabel.TextSize = 12
WaitTimeLabel.TextXAlignment = Enum.TextXAlignment.Left
WaitTimeLabel.Parent = MainFrame
local WaitTimeBox = Instance.new("TextBox")
WaitTimeBox.Name = "WaitTimeBox"
WaitTimeBox.Size = UDim2.new(0.4, 0, 0, 25)
WaitTimeBox.Position = UDim2.new(0.5, 0, 0.45, 0)
WaitTimeBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
WaitTimeBox.TextColor3 = Color3.fromRGB(255, 255, 255)
WaitTimeBox.Text = "0.05"
WaitTimeBox.Font = Enum.Font.Gotham
WaitTimeBox.TextSize = 12
WaitTimeBox.Parent = MainFrame
local WaitTimeCorner = Instance.new("UICorner")
WaitTimeCorner.CornerRadius = UDim.new(0, 6)
WaitTimeCorner.Parent = WaitTimeBox
local DelayTimeLabel = Instance.new("TextLabel")
DelayTimeLabel.Name = "DelayTimeLabel"
DelayTimeLabel.Size = UDim2.new(0.4, 0, 0, 20)
DelayTimeLabel.Position = UDim2.new(0.1, 0, 0.6, 0)
DelayTimeLabel.BackgroundTransparency = 1
DelayTimeLabel.Text = "Delay Time:"
DelayTimeLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
DelayTimeLabel.Font = Enum.Font.Gotham
DelayTimeLabel.TextSize = 12
DelayTimeLabel.TextXAlignment = Enum.TextXAlignment.Left
DelayTimeLabel.Parent = MainFrame
local DelayTimeBox = Instance.new("TextBox")
DelayTimeBox.Name = "DelayTimeBox"
DelayTimeBox.Size = UDim2.new(0.4, 0, 0, 25)
DelayTimeBox.Position = UDim2.new(0.5, 0, 0.6, 0)
DelayTimeBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
DelayTimeBox.TextColor3 = Color3.fromRGB(255, 255, 255)
DelayTimeBox.Text = "0.4"
DelayTimeBox.Font = Enum.Font.Gotham
DelayTimeBox.TextSize = 12
DelayTimeBox.Parent = MainFrame
local DelayTimeCorner = Instance.new("UICorner")
DelayTimeCorner.CornerRadius = UDim.new(0, 6)
DelayTimeCorner.Parent = DelayTimeBox
local CloseButton = Instance.new("TextButton")
CloseButton.Name = "CloseButton"
CloseButton.Visible = false
CloseButton.Size = UDim2.new(0.3, 0, 0, 30)
CloseButton.Position = UDim2.new(0.35, 0, 0.85, 0)
CloseButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseButton.Text = "Close"
CloseButton.Font = Enum.Font.GothamBlack
CloseButton.TextSize = 14
CloseButton.AutoButtonColor = false
CloseButton.Parent = MainFrame
local CloseCorner = Instance.new("UICorner")
CloseCorner.CornerRadius = UDim.new(0, 6)
CloseCorner.Parent = CloseButton
local function toggleMenu()
MainFrame.Visible = not MainFrame.Visible
if MainFrame.Visible then
MainFrame.Position = UDim2.new(0.5, -125, 0.5, -100)
local tween = TweenService:Create(
MainFrame,
TweenInfo.new(0.3, Enum.EasingStyle.Quad,
Enum.EasingDirection.Out),
{Position = UDim2.new(0.5, -125, 0.5, -100)}
)
tween:Play()
end
end
MenuButton.MouseButton1Click:Connect(toggleMenu)
CloseButton.MouseButton1Click:Connect(toggleMenu)
local dragging
local dragInput
local dragStart
local startPos
local function update(input)
local delta = input.Position - dragStart
local newPos = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
MainFrame.Position = newPos
end
MainFrame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = MainFrame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
MainFrame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
dragInput = input
end
end)
UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)
local FakeLag = false
local waitTime = 0.05
local delayTime = 0.4
ToggleButton.MouseButton1Click:Connect(function()
FakeLag = not FakeLag
if FakeLag then
ToggleButton.Text = "ON"
ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
else
ToggleButton.Text = "OFF"
ToggleButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
end
end)
WaitTimeBox.FocusLost:Connect(function()
waitTime = tonumber(WaitTimeBox.Text) or waitTime
WaitTimeBox.Text = tostring(waitTime)
end)
DelayTimeBox.FocusLost:Connect(function()
delayTime = tonumber(DelayTimeBox.Text) or delayTime
DelayTimeBox.Text = tostring(delayTime)
end)
coroutine.wrap(function()
while task.wait(waitTime) do
if FakeLag then
local character = player.Character
if character and
character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.Anchored = true
task.wait(delayTime)
character.HumanoidRootPart.Anchored = false
end
end
end
end)()
end
createGUI()