I have been coding a leaderstats system for the past hour or so and have encountered a problem. I chose to use emojis in the leaderboard as shown below:
The only problem is, when I want to interact and change the values of the intvalues, I can’t do it because of the emoji.
Does anyone know any fix to this like another way to declare my local variable while avoiding the emoji?
instead of using . to index you can use brackets [] to index with expressions instead of with just identifiers
since strings are expressions you can have the following:
local fossils=game.player.leaderstats['💀Fossils'].value