Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED] Attempt to index number with number?

Asked by 2 years ago
Edited by Xapelize 2 years ago

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:

1if button:FindFirstChildOfClass("NumberValue").Name == currentbutton[correctbuttonsclicked]
2then
3    print("correct number!")
4    correctbuttonsclicked += 1
5end

1 answer

Log in to vote
0
Answered by 2 years ago

nevermind i fixed it by changing currentbutton to codeorder which is the table im using.

0
put [SOLVED] in the tittle T3_MasterGamer 2189 — 2y
Ad

Answer this question