Need help recreating a laser pointer

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!
ea04da2e46856ebf8958b75bdfc11977

93dda9fdd3f95d4ddd71c04b3995a0fd

1 Like

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.

2 Likes

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.

2 Likes