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

5 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh, thank you :))
I can access it the same way?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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•2y ago
Message Not Public
Sign In & Join Server To View