How would I make something like this?

So… The title much pretty explains it all. How would I make something like this?


I’ve tried using LinearVelocity, BodyVelocity :sad:, and more. So far. If the title dosen’t explain much, heres what I want to code:
The power is based on the percent, but the percent is very little to do so. (Max is 50) Probably per + 4000. This is all I have. I also want to make it code on the distance because you need to shoot from a certain distance for it to work (Magnitude, but I have no idea how to do so). Any solutions? By the way, this is the code I have tried:

local Velocity2 = Create("LinearVelocity",Ball)
				Velocity2.MaxForce = per + 4000
				Velocity2.VectorVelocity = workspace.Part.Position
				Velocity2.Attachment0 = Ball.Attachment
				game.Debris:AddItem(Velocity2, 0.25)
2 Likes

Bump.

this might be a good starting point

you can find the required velocity to get into the hoop and multiply it by how accurate the player filled the bar

1 Like