I’m making a gun that uses raycasting and physical bullets that tween to the ray’s position.
However, when shooting in the sky the ray is nil, and so is the distance, so the bullet has nowhere to tween to so it just drops out of the gun. How can I get a position similar to mouse.Hit?
You could do
local position = origin + (unitDirection * distance)
(Only for nil rays)