Im trying to make it check if the button that is clicked has a value with a name that is equal to the current number.
But for some reason it gives out the error on the title.
Heres the part where it doesnt seem to work:
1 | if button:FindFirstChildOfClass( "NumberValue" ).Name = = currentbutton [ correctbuttonsclicked ] |
2 | then |
3 | print ( "correct number!" ) |
4 | correctbuttonsclicked + = 1 |
5 | end |
nevermind i fixed it by changing currentbutton to codeorder which is the table im using.