vopwn55 / powerlang-issues

0 stars 0 forks source link

Compiler Doesn't Account For FindFirstChild Not Running Blocks If Nil. If nested, it won't run the rest of the code. #34

Open SpeedySpot opened 3 weeks ago

SpeedySpot commented 3 weeks ago

If a FindFirstChild function is placed in the parameters for something that acts as a nest, such as a while loop or if statement, it will not run the rest of the code if FindFirstChild returns nil. While lua runs the code as normal, retrostudio will only run it if the value is not nil. I believe this was overlooked.

Code example: image image

The bottom image will not run as the find first child block is direct connected to the rest of the code. I believe this could be fixed if the rest of the code was placed on the second connection of the block above the FindFirstChild.