I've been scripting a projectile weapon (you can think of it as a gun for purposes of this question) using Velocity and a BodyForce to make the projectile fly forwards and have a realistic gravitational effect. All my code is working well, but I've encountered a problem, especially in online mode.
Roblox's Touched event is very glitchy. At times the projectile gets deleted immediately when it hits an object, as it should, but other times it flies right on through that object (it's CanCollide false) without being deleted, especially if the part is thin.
I've been thinking I could implement a kind of raycasting system, but I'm not making a laser gun. Even if I could get the projectile to follow the path of the ray (for visual purposes) I would lose both gravity and the actual time it takes the object to fly through the air, unless you know of a way around this.
Let me know if you want any code to use for reference. Thanks in advance.
-Perci