I tried to make an OOP obby generation script which worked as expected in terms of generating. But I encountered an issue when trying to prevent it from picking the same Obby piece twice in a row. I created a repeat loop in order to choose a random obby piece until the chosen piece wasnt equal to the last. But its just not working. Any ideas?
You are comparing a cloned instance to an original, which will never be the same thing. You will need to compare something else, like an ID or name of the stage in order to see if they are the same.