Velocity Help Needed!

okay so ive been trying for about 2 hours to figure out good velocity ranges for shell ejection for a gun system im making, if you have any ideas please let me know!

    bulletClone.Velocity = Vector3.new(0, math.random(8, 23), math.random(-5, 5))
    bulletClone.RotVelocity = Vector3.new(0, math.random(50, 300), 0)

the best i got is above, but all it does is fall down to the ground instead of fly to the right

1 Like

I forgot if it had to be anchored or not but, is it anchored?

nope, its not anchored so im just using velocity

Try to anchor it before using velocity

i think ApplyImpulse could be useful here

Why? its not that its just the ranges are too weak and i cant get it good enough

is it in a loop? if not, try adding it into a stepped loop (velocity resets every tick)

if this doesn’t work, try using a BodyVelocity or a LinearVelocity as these classes maintain a constant velocity

it is working, i just dont know how to make it go up and along if that makes sense, like how a real gun ejects shells