So I want to make the player go up and go forward at the same time, I tried to create two BodyVelocity at the same time, but it does not work, are there any ways to solve this problem?
script:
Remote = RepStorage:WaitForChild("DashEvent")
Remote.OnServerEvent:Connect(function(Player)
spawn(function()
local BV = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
BV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BV.Velocity = Player.Character.HumanoidRootPart.CFrame.UpVector*100
game.Debris:AddItem(BV, 0.2)
end)
local BV2 = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
BV2.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BV2.Velocity = Player.Character.HumanoidRootPart.CFrame.LookVector*100
game.Debris:AddItem(BV2, 0.2)
end)
