Raycast Laser beam laggy

So Im making a laser beam for a gun and it uses raycast, but the problem is that it delays when its not in a local script. Is there anyway I can make it smooth and server-side? if not is there any other way I could go about making a laser beam?

Hey @official_rbxreece, great question. I have a rather simple answer:

It is a great resource, I can vouch. Good for making any projectile weapon. It even comes with a laser gun demo. Just let me know if you have any questions on it.

1 Like

You can proxy-handle its replication to the server by sending any necessary information to the server (if any is required at all) and then calling “FireAllClients()” from the server and reproducing the same raycast behavior for each individual client locally.