Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Services
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local lagging = false
- -- Create GUI
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "FakeLagGui"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = player:FindFirstChild("PlayerGui") or Instance.new("PlayerGui", player)
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 250, 0, 180)
- frame.Position = UDim2.new(0.35, 0, 0.1, 0)
- frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- frame.Draggable = true
- frame.Active = true
- frame.Parent = screenGui
- -- Title Label
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, 0, 0, 30)
- title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- title.Text = "Fake Lag (FE)"
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.Font = Enum.Font.SourceSansBold
- title.TextSize = 14
- title.Parent = frame
- -- Interval Slider
- local intervalLabel = Instance.new("TextLabel")
- intervalLabel.Text = "Interval: 0.5s"
- intervalLabel.Size = UDim2.new(1, 0, 0, 20)
- intervalLabel.Position = UDim2.new(0, 0, 0.2, 0)
- intervalLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- intervalLabel.BackgroundTransparency = 1
- intervalLabel.Parent = frame
- local intervalSlider = Instance.new("TextBox")
- intervalSlider.Text = "0.5"
- intervalSlider.Size = UDim2.new(0.8, 0, 0, 25)
- intervalSlider.Position = UDim2.new(0.1, 0, 0.3, 0)
- intervalSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- intervalSlider.TextColor3 = Color3.fromRGB(0, 0, 0)
- intervalSlider.Parent = frame
- -- Duration Slider
- local durationLabel = Instance.new("TextLabel")
- durationLabel.Text = "Duration: 0.2s"
- durationLabel.Size = UDim2.new(1, 0, 0, 20)
- durationLabel.Position = UDim2.new(0, 0, 0.4, 0)
- durationLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- durationLabel.BackgroundTransparency = 1
- durationLabel.Parent = frame
- local durationSlider = Instance.new("TextBox")
- durationSlider.Text = "0.2"
- durationSlider.Size = UDim2.new(0.8, 0, 0, 25)
- durationSlider.Position = UDim2.new(0.1, 0, 0.5, 0)
- durationSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- durationSlider.TextColor3 = Color3.fromRGB(0, 0, 0)
- durationSlider.Parent = frame
- -- Toggle Button
- local toggleBtn = Instance.new("TextButton")
- toggleBtn.Size = UDim2.new(0.8, 0, 0, 30)
- toggleBtn.Position = UDim2.new(0.1, 0, 0.7, 0)
- toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
- toggleBtn.Text = "Enable Fake Lag"
- toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- toggleBtn.Parent = frame
- -- Minimize Button
- local minimizeBtn = Instance.new("TextButton")
- minimizeBtn.Size = UDim2.new(0, 25, 0, 25)
- minimizeBtn.Position = UDim2.new(1, -30, 0, 5)
- minimizeBtn.BackgroundColor3 = Color3.fromRGB(255, 100, 100)
- minimizeBtn.Text = "-"
- minimizeBtn.Parent = frame
- -- Credits (At the Bottom)
- local credits = Instance.new("TextLabel")
- credits.Size = UDim2.new(1, 0, 0, 20)
- credits.Position = UDim2.new(0, 0, 0.85, 0)
- credits.Text = "Created by cashiertselmeg1"
- credits.TextColor3 = Color3.fromRGB(150, 150, 150)
- credits.BackgroundTransparency = 1
- credits.Parent = frame
- -- Fake Lag Function
- local function fakeLag()
- while lagging do
- local interval = tonumber(intervalSlider.Text) or 0.5
- local duration = tonumber(durationSlider.Text) or 0.2
- -- Stop movement
- if humanoidRootPart then
- humanoidRootPart.Anchored = true
- end
- wait(duration)
- -- Resume movement
- if humanoidRootPart then
- humanoidRootPart.Anchored = false
- end
- wait(interval)
- end
- end
- -- Toggle Button Click Event
- toggleBtn.MouseButton1Click:Connect(function()
- lagging = not lagging
- toggleBtn.Text = lagging and "Disable Fake Lag" or "Enable Fake Lag"
- if lagging then
- fakeLag()
- end
- end)
- -- Minimize Button Click Event
- local minimized = false
- minimizeBtn.MouseButton1Click:Connect(function()
- minimized = not minimized
- for _, obj in ipairs(frame:GetChildren()) do
- if obj ~= minimizeBtn then
- obj.Visible = not minimized
- end
- end
- frame.Size = minimized and UDim2.new(0, 100, 0, 30) or UDim2.new(0, 250, 0, 180)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement