Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

is it possible to make a script that repeats something until a brick collides with something?

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?

2 comments

0

nothing is impossible lol

0

This is possible but I am not good at raycasts. Sorry.

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.