local function jump(player)
local root = player.Character.HumanoidRootPart
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Parent = root
BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BodyVelocity.P = 50
player.Character.HumanoidRootPart.Velocity = Vector3.new(0,100,0)
local dir = CFrame.Angles(math.pi*2,0,0)
local spd = 350
root.BodyVelocity.velocity = ((root.CFrame * dir).lookVector) * spd
wait(.1)
BodyVelocity:Destroy()
end
My script ties to a RemoteFunction. I need to know how to make a this go up. I attempted to make it go up by creating a Velocity but that didn't work. Is there anyone who knows how to do this?
