How to make a ball curve using BodyVelocity

  1. What do you want to achieve?
    I want to make a soccer ball curve when it is kicked by a player using BodyVelocity or any BodyMover.

  2. What is the issue?
    I do not know how to do this with BodyVelocity, I have already tried using Bezier Curves but the goal keeper is unable to save the ball when I use those and the Ball is not affected by physics and walls

Video with bezier curves:


How do I replicate that effect but with BodyVelocity instead of a bezier curve?

1 Like

I managed to solve this.
For people who are also having this problem, here is what I did,

local yy = Instance.new("BodyVelocity")
yy.maxForce = Vector3.new(math.huge, math.huge, math.huge)
yy.Velocity = direction*(player.Power.Value/24)
yy.Parent = part
game.Debris:AddItem(yy,0.6)



spawn(function()
	while wait(0.1) do
		yy.Velocity = yy.Velocity - Vector3.new(5,0,0)
	end
end)

I just changed the x factor of the body velocity in a while loop.

1 Like

What is the value of the direction and player.Power.Value variables?

I solved It all already at the Solution