I want to make a laser script that fires a laser and keeps growing until it eventually hits another part. Can someone tell me if this is possible?
COMMUNITY QUESTION
is it possible to make a script that repeats something until a brick collides with something?
1 answer
Yes, it is possible. Unfortunately, I cannot provide you with the script because this site is an helping site and not a request site.
But, here's a liitle help. Raycast Documentation : https://developer.roblox.com/en-us/articles/Raycasting
And then you can use a while loop and inside the loop, you can check whether the part touched something and if yes, you can break the loop.
Lemme know if it helps!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
nothing is impossible lol
This is possible but I am not good at raycasts. Sorry.