local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local hrp = character:WaitForChild("HumanoidRootPart") local humanoid = character:WaitForChild("Humanoid") local RunService = cloneref(game:GetService("RunService")) RunService.Heartbeat:Connect(function() local moveDirection = humanoid.MoveDirection if moveDirection.Magnitude > 0 then hrp.AssemblyLinearVelocity = (moveDirection * 50) + Vector3.new(0, hrp.AssemblyLinearVelocity.Y, 0) end end)