Instance as Table Key

Hello :DDD Is there any way to set the key to something else that is not a string, like roblox does, so for example I can do GameService.UserClasses[User: Player] The error I get is "An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type" thank you
No description
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
PepeElToro41
PepeElToro41OP2y ago
oh, thank you :)) I can access it the same way?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
PepeElToro41
PepeElToro41OP2y ago
oh yeah I checked the functions rn, is there any way to iterate it with for loops?, not with forEach function, mostly for break/return/continue functionality not really that I need that, but just to remember it in case I need to
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?