I’ve tried various methods and prefer to manipulate the bullet part with “. Assembly” than using constraints since I haven’t found them useful due to their glitches.
I also tried using fast cast, but I rather have this for the individual bullets rather than a whole gun.
What does a max height mean in this case? If it reaches that height it disappears? Or do you want to set the velocity so it physically cannot go higher than some height?
If you shoot straight up the height will be based on this kinematic equation: x = vt + 1/2 a t^2
where v is the initial upwards velocity and a is gravity’s acceleration (set in Workspace, will be negative). The max height will be x. You can rearrange this to find the max velocity you can allow for a given height.