How to make a laser beam?

What do you want to achieve?

A real-life like laser beam, that stops when it hits a wall or a surface

What is the issue?

I can’t figure out how to

What solutions have you tried so far?

Using a beam object that moves the second attachment wherever the mouse points, but the beam is not really round from some perspectives

2 Likes

That is because when you use the “beam” its displaying a texture, you may want to look into using trails instead with lifetimes attached:
https://developer.roblox.com/en-us/api-reference/class/Trail

This is what I use for my laser beam bullets.

1 Like

Maybe use raycasting? https://developer.roblox.com/en-us/articles/Raycasting

you can use runservice heartbeat to make it as accurate as possible within frame updating.
raycasting to make it STOP at a part.