
KeylessUniversal

-- by omgamlookyou4 / himrng
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local humanoid = char:WaitForChild("Humanoid")
-- speed
local walkSpeed = 16
local runSpeed = 50
local currentSpeed = walkSpeed
local running = false
UserInputService.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.LeftShift then
running = true
currentSpeed = runSpeed
end
end)
UserInputService.InputEnded:Connect(function(input, gpe)
if input.KeyCode == Enum.KeyCode.LeftShift then
running = false
currentSpeed = walkSpeed
end
end)
RunService.RenderStepped:Connect(function(dt)
local moveDir = humanoid.MoveDirection
if moveDir.Magnitude > 0 then
hrp.CFrame = hrp.CFrame + (moveDir * currentSpeed * dt)
end
end)
-- by omgamlookyou4 / himrng
I ever tell you about the time my buddy Keith got rolled by a gator in a swamp? Man, he didn't agonize it or nothin', we were just tryin' to grab two so we could * 'em off and get 'em into a fight. Well, anyway, the third time Keith went under, I realized something was wrong, so I―