ApplyImpulse/RayCasting Server and Client Projectile Difference

I’m currently using applyimpulse to make some projectiles for a boss, but I’m currently having some issues. On the server, the projectiles delete at the proper time (when raycasting detects it close to the ground). On the client however, the projectile deletes half-way in the air? Anyone know how to fix this and what’s wrong?

–Client

—Server

1 Like

The most probable issue here is that the applied impulse takes a while to replicate to the client, while the :Destroy() call replicates much faster.

I recommend creating the projectile on the server and using that for damaging the player but also creating the projectile on the client for display purposes. You could use a module for the projectile display and simply call it in both a client and server script.

4 Likes

Simulate the movement for damage on the server and handle the visual aspect on the client.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.