How to make random generated code door puzzle

i want to make game like find the little guys and in that game has random generated puzzle

1 Like

You need a function that generates a random correct answer and a function that checks the player’s input against that correct answer.

1 Like

You can use math.random to generate a code, and if code == generatedCode then... end to check against the generated code

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.