local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local hrp = character:WaitForChild("HumanoidRootPart") local UIS = game:GetService("UserInputService") local hopping = false UIS.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.H then hopping = not hopping end end) game:GetService("RunService").RenderStepped:Connect(function() if hopping then hrp.Velocity = Vector3.new(hrp.CFrame.LookVector.X * 30, 50, hrp.CFrame.LookVector.Z * 30) end end)