Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[SOLVED] Attempt to index number with number?

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:

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

1 answer

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

1 comment

0

put [SOLVED] in the tittle

This discussion is preserved as it was. New answers, comments, and votes are closed.