local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Player = Players.LocalPlayer
local SPEED_ALVO = Player.Character.Humanoid.WalkSpeed * 2 -- Do not change the speed to prevent bugs.
local TOGGLE_KEY = Enum.KeyCode.V -- Change it to whatever letter you want.
local isEnabled = false
UserInputService.InputBegan:Connect(function(input, processed)
if not processed and input.KeyCode == TOGGLE_KEY then
isEnabled = not isEnabled
end
end)
RunService.Heartbeat:Connect(function(deltaTime)
if not isEnabled then return end
local char = Player.Character
if not char then return end
local hrp = char:FindFirstChild("HumanoidRootPart")
local hum = char:FindFirstChild("Humanoid")
if hrp and hum and hum.MoveDirection.Magnitude > 0 then
local oldY = hrp.AssemblyLinearVelocity.Y
hrp.AssemblyLinearVelocity = Vector3.new(0, oldY, 0)
hrp.CFrame = hrp.CFrame + (hum.MoveDirection * (SPEED_ALVO * deltaTime))
hrp:SetNetworkOwner(Player)
end
end)
Comments
No comments yet
Be the first to share your thoughts!