Hey, I am trying to recreate this laser pointer from a game!
I have tried using HeartBeat to make it fires a remote event which will create a laser beam on the client, then tween the part to it’s position and size.
But so far it doesn’t look anywhere near it and the laser just keeps going up, is there any better way to approach this?
The laser I am trying to make is on top, my progress is right below. Thank you!
It looks like your script is raycasting onto your actual laser beam part, which is why it keeps going up. Try using RaycastParams, namely FilterDescendantsInstances, so that your laser will ignore your beam.
laser.rbxl (37.4 KB)
Here’s my take on it. It’s not the best approach though since the effect is done on the server, but I figured it should be fine for something so simple. If you want to have it perfectly smooth you’ll have to do that on the client and make sure replication still works.