How Do I Make a Laser Using Raycasts That Only Reflect Off of Certain Parts?

Hello! Beginner-Intermediate scripter here, I would like to know how to make a laser that reflects off of certain parts with only one laser beam that stops on parts that I don’t want the laser to reflect off of.

sleitnick’s laser shoots laser projectiles and not a single laser beam, I would like a single laser beam that reflects off of certain parts, I know that part of the process Involves using a whitelist and a blacklist.

I have seen several videos on how to make a laser that reflects off of parts using raycasts, but none of them show how to make the laser only reflect off of certain parts and stop on other parts.

1 Like

I found out how to do this! you use a statement like this in the script somewhere:

if Result.Instance.Name = “(Name of parts you want the laser to reflect off of)”
(Script goes here)
else break end

1 Like

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