That's the basics of how a RayCaster works, it's not very professional, there's not even an example game in it, and there's a reason for that, I don't know much about professional scratch. I hope that some of you will try to remix and do something with this example of a raycast.
Made by @me <--- tha't is not me, the project was made by me.