Advertisement
cashiertselmeg1

FE Fake lag

Jan 30th, 2025
1,108
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 1 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4.  
  5. local player = Players.LocalPlayer
  6. local character = player.Character or player.CharacterAdded:Wait()
  7. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  8. local lagging = false
  9.  
  10. -- Create GUI
  11. local screenGui = Instance.new("ScreenGui")
  12. screenGui.Name = "FakeLagGui"
  13. screenGui.ResetOnSpawn = false
  14. screenGui.Parent = player:FindFirstChild("PlayerGui") or Instance.new("PlayerGui", player)
  15.  
  16. local frame = Instance.new("Frame")
  17. frame.Size = UDim2.new(0, 250, 0, 180)
  18. frame.Position = UDim2.new(0.35, 0, 0.1, 0)
  19. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  20. frame.Draggable = true
  21. frame.Active = true
  22. frame.Parent = screenGui
  23.  
  24. -- Title Label
  25. local title = Instance.new("TextLabel")
  26. title.Size = UDim2.new(1, 0, 0, 30)
  27. title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  28. title.Text = "Fake Lag (FE)"
  29. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. title.Font = Enum.Font.SourceSansBold
  31. title.TextSize = 14
  32. title.Parent = frame
  33.  
  34. -- Interval Slider
  35. local intervalLabel = Instance.new("TextLabel")
  36. intervalLabel.Text = "Interval: 0.5s"
  37. intervalLabel.Size = UDim2.new(1, 0, 0, 20)
  38. intervalLabel.Position = UDim2.new(0, 0, 0.2, 0)
  39. intervalLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  40. intervalLabel.BackgroundTransparency = 1
  41. intervalLabel.Parent = frame
  42.  
  43. local intervalSlider = Instance.new("TextBox")
  44. intervalSlider.Text = "0.5"
  45. intervalSlider.Size = UDim2.new(0.8, 0, 0, 25)
  46. intervalSlider.Position = UDim2.new(0.1, 0, 0.3, 0)
  47. intervalSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  48. intervalSlider.TextColor3 = Color3.fromRGB(0, 0, 0)
  49. intervalSlider.Parent = frame
  50.  
  51. -- Duration Slider
  52. local durationLabel = Instance.new("TextLabel")
  53. durationLabel.Text = "Duration: 0.2s"
  54. durationLabel.Size = UDim2.new(1, 0, 0, 20)
  55. durationLabel.Position = UDim2.new(0, 0, 0.4, 0)
  56. durationLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. durationLabel.BackgroundTransparency = 1
  58. durationLabel.Parent = frame
  59.  
  60. local durationSlider = Instance.new("TextBox")
  61. durationSlider.Text = "0.2"
  62. durationSlider.Size = UDim2.new(0.8, 0, 0, 25)
  63. durationSlider.Position = UDim2.new(0.1, 0, 0.5, 0)
  64. durationSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  65. durationSlider.TextColor3 = Color3.fromRGB(0, 0, 0)
  66. durationSlider.Parent = frame
  67.  
  68. -- Toggle Button
  69. local toggleBtn = Instance.new("TextButton")
  70. toggleBtn.Size = UDim2.new(0.8, 0, 0, 30)
  71. toggleBtn.Position = UDim2.new(0.1, 0, 0.7, 0)
  72. toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  73. toggleBtn.Text = "Enable Fake Lag"
  74. toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  75. toggleBtn.Parent = frame
  76.  
  77. -- Minimize Button
  78. local minimizeBtn = Instance.new("TextButton")
  79. minimizeBtn.Size = UDim2.new(0, 25, 0, 25)
  80. minimizeBtn.Position = UDim2.new(1, -30, 0, 5)
  81. minimizeBtn.BackgroundColor3 = Color3.fromRGB(255, 100, 100)
  82. minimizeBtn.Text = "-"
  83. minimizeBtn.Parent = frame
  84.  
  85. -- Credits (At the Bottom)
  86. local credits = Instance.new("TextLabel")
  87. credits.Size = UDim2.new(1, 0, 0, 20)
  88. credits.Position = UDim2.new(0, 0, 0.85, 0)
  89. credits.Text = "Created by cashiertselmeg1"
  90. credits.TextColor3 = Color3.fromRGB(150, 150, 150)
  91. credits.BackgroundTransparency = 1
  92. credits.Parent = frame
  93.  
  94. -- Fake Lag Function
  95. local function fakeLag()
  96. while lagging do
  97. local interval = tonumber(intervalSlider.Text) or 0.5
  98. local duration = tonumber(durationSlider.Text) or 0.2
  99.  
  100. -- Stop movement
  101. if humanoidRootPart then
  102. humanoidRootPart.Anchored = true
  103. end
  104.  
  105. wait(duration)
  106.  
  107. -- Resume movement
  108. if humanoidRootPart then
  109. humanoidRootPart.Anchored = false
  110. end
  111.  
  112. wait(interval)
  113. end
  114. end
  115.  
  116. -- Toggle Button Click Event
  117. toggleBtn.MouseButton1Click:Connect(function()
  118. lagging = not lagging
  119. toggleBtn.Text = lagging and "Disable Fake Lag" or "Enable Fake Lag"
  120.  
  121. if lagging then
  122. fakeLag()
  123. end
  124. end)
  125.  
  126. -- Minimize Button Click Event
  127. local minimized = false
  128. minimizeBtn.MouseButton1Click:Connect(function()
  129. minimized = not minimized
  130. for _, obj in ipairs(frame:GetChildren()) do
  131. if obj ~= minimizeBtn then
  132. obj.Visible = not minimized
  133. end
  134. end
  135. frame.Size = minimized and UDim2.new(0, 100, 0, 30) or UDim2.new(0, 250, 0, 180)
  136. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement