My arrow is pushed through the air with a body velocity.
I want to make a projectile stick to whatever object it hits. –What I want to achieve
I tried using .Touched for this, but it’d delay. I even tried to push it back a little after it hits something, but sometimes it’ll register it touching something right away, and make it spaced out. –Things I’ve tried
i think when it comes to Ranged weapons, the best solution would be creating some sort of system [WIth Raycasts] that (when you trigger) it will alert the server to create
[Point A] (from where you are trying to shoot)
and
[Point B] where the projectile will land
the position predict [Server-Side] is necessary, because exploiters can easily manipulate [Local scripts only] the position of where the arrow will land,
and you can add some functions depending on what [Point B] Destiny was
if Terrain -- something
if Npcs -- damage
if Players -- damager + effects or something
if the projectile was destroyed somehow -- just cancel , and don't trigger any function
Again, i recommend using Raycasts for this…
since it will make it even easy to manipulate projectiles, collisions and etc
ii have no time rn to show some script demonstration but this is it