How to shoot something in a random direction

How i make so a ball shoots in the air in a random direction? I only know how to make it shoot up with AlignPosition/Angular Velocity but how do I shoot in a random direction?

to explain myself better

image
That blue point is the origin

+ Vector3.new(math.random(-40,40),0,math.random(-40,40))

40 is the range on how far it will go randomly sideways

1 Like

I already think on this, But is not that accurate, I think it would be better if it actually calculates the air

1 Like