Table.find input.keycode.name returns nil in table, but printing it normally works completely fine

image
image
pretty sure im just having a stupid moment here but why isnt this working at all

that just means it cant find the input key in the table.

yeah i know but it should be there
image
still prints nil

You are replacing the index with [“Q”]. Table.find returns the haystack’s number. In order to fix this, you can remove the Square Brackets around the Q and removing the = and the 1.

1 Like

cant mark this as the solution

has to be #help-and-feedback:scripting-support

1 Like

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