I tried to make a leap script. I don't really know what and how I should go about this. I know how to code but I don't know much about bodyvelocity and stuff like that.

So I tried:

local debris = game:GetService("Debris")

local player = game.Players.LocalPlayer
local character = player.Character
local mouse = player:GetMouse()

local humanoidrootpart = character:FindFirstChild("HumanoidRootPart")
local humanoid = character:FindFirstChild("Humanoid")


mouse.Button1Down:Connect(function()
local Force = Instance.new("BodyVelocity")
Force.velocity = Vector3.new(30, 0, 30) 
Force.maxForce = Vector3.new(10000, 0, 10000)
debris:AddItem(Force,3)
Force.Parent = humanoidrootpart
end)

It just moves you a certain direction I want it to move towards the mouse without going upwards.