local player = game:GetService("Players").LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- Remove existing GUI if re-running script if playerGui:FindFirstChild("SpeedExploitGUI") then playerGui.SpeedExploitGUI:Destroy() end -- Create ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "SpeedExploitGUI" screenGui.Parent = playerGui screenGui.ResetOnSpawn = false -- Keeps GUI on screen after death -- Create Toggle Button local button = Instance.new("TextButton") button.Name = "ToggleButton" button.Size = UDim2.new(0, 150, 0, 50) button.Position = UDim2.new(0.05, 0, 0.4, 0) -- Left side of screen button.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- Initial Red (OFF) button.Text = "SPEED: OFF" button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Font = Enum.Font.GothamBold button.TextSize = 18 button.Parent = screenGui -- Add rounded corners local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = button -- State variable local isSpeedEnabled = false -- Function to handle click button.MouseButton1Click:Connect(function() isSpeedEnabled = not isSpeedEnabled if isSpeedEnabled then -- ENABLED STATE (GREEN) button.BackgroundColor3 = Color3.fromRGB(0, 200, 0) button.Text = "SPEED: ON" local char = player.Character if char and char:FindFirstChild("Humanoid") then char.Humanoid.WalkSpeed = 50 end else -- DISABLED STATE (RED) button.BackgroundColor3 = Color3.fromRGB(200, 0, 0) button.Text = "SPEED: OFF" local char = player.Character if char and char:FindFirstChild("Humanoid") then char.Humanoid.WalkSpeed = 16 end end end) -- Background Loop to bypass anti-cheat resets task.spawn(function() while task.wait(0.1) do if isSpeedEnabled then local char = player.Character local hum = char and char:FindFirstChild("Humanoid") if hum and hum.WalkSpeed ~= 50 then hum.WalkSpeed = 50 end end end end) print("Speed Hack GUI Loaded Successfully!")