
Key Required
Running For Life
Lua Script•92 lines (2510 chars)
-- AutoRun Speed (PC version)
-- Q = Toggle On/Off
-- Insert = Speed +5
-- Delete = Speed -5
-- Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
-- Config
local defaultSpeed = 105
local minSpeed = 30
local maxSpeed = 400
local stepSpeed = 5
local enabled = false
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local hrp = char:WaitForChild("HumanoidRootPart")
local targetSpeed = defaultSpeed
-- GUI (SPD text only)
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoRunGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")
local speedLabel = Instance.new("TextLabel")
speedLabel.Position = UDim2.new(0, 10, 1, -90)
speedLabel.Size = UDim2.new(0, 200, 0, 40)
speedLabel.BackgroundTransparency = 0.3
speedLabel.BackgroundColor3 = Color3.fromRGB(20,20,20)
speedLabel.BorderSizePixel = 0
speedLabel.TextColor3 = Color3.fromRGB(255,255,255)
speedLabel.Font = Enum.Font.SourceSansBold
speedLabel.TextSize = 20
speedLabel.Parent = screenGui
local function clamp(n, a, b)
if n < a then return a end
if n > b then return b end
return n
end
local function updateLabel()
speedLabel.Text = "SPD: " .. tostring(targetSpeed) .. " | " .. (enabled and "ON" or "OFF")
end
-- Input handling
UserInputService.InputBegan:Connect(function(input, gp)
if gp then return end
if input.KeyCode == Enum.KeyCode.Q then
enabled = not enabled
updateLabel()
elseif input.KeyCode == Enum.KeyCode.Insert then
targetSpeed = clamp(targetSpeed + stepSpeed, minSpeed, maxSpeed)
updateLabel()
elseif input.KeyCode == Enum.KeyCode.Delete then
targetSpeed = clamp(targetSpeed - stepSpeed, minSpeed, maxSpeed)
updateLabel()
end
end)
-- Heartbeat loop: apply speed
RunService.Heartbeat:Connect(function()
if enabled and hrp and hum and hum.Health > 0 then
local look = hrp.CFrame.LookVector
local dir = Vector3.new(look.X, 0, look.Z)
if dir.Magnitude > 0 then
local newVel = dir.Unit * targetSpeed
hrp.AssemblyLinearVelocity = Vector3.new(newVel.X, hrp.AssemblyLinearVelocity.Y, newVel.Z)
end
end
end)
-- Respawn update
local function onCharacterAdded(newChar)
char = newChar
hum = char:WaitForChild("Humanoid")
hrp = char:WaitForChild("HumanoidRootPart")
updateLabel()
end
player.CharacterAdded:Connect(onCharacterAdded)
updateLabel()Features & Information
- Increase speed when running.
Q for activated.
Number for Increase speed
Community Comments (0)
No comments yet for this script.
