So, I always have this problem with BodyVelocity and I thought this time would be different, but no, it is not. My problem is that BodyVelocity never seems to actually do anything to the brick, can anyone help?

function shootBall(character, spot, net)
	local ball = character["V2"]
	ball.Parent = workspace

	local BV = Instance.new("BodyVelocity", ball)
	BV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
	BV.P = 2000
	BV.Velocity = Vector3.new((spot * 4), ((ball.Handle.Position - net.Middle.Position).magnitude + game.Workspace.Gravity * ball.Handle:GetMass()), 0)

	for i, v in pairs (script.Parent.ImageLabel["Bar Frames"]:GetChildren()) do
		if v.Name == "ShootingFrame" then
			v:Destroy()
		end
	end
end

All the arguments and parameters are met, it just doesn't do anything...

2 comments

0

Make sure the that the part isn't anchored.

0

It isn't