In my game, I’m trying to determine whether a player is stunned, attacking, blocking, etc., and I’m wondering if using attributes would be the best approach. For example, in one of my scripts, I need to check if a player is stunned to prevent them from attacking. Should I use attributes to track these states, or is there a better method in Roblox Studio for handling this?
You can use tables inside scripts, attributes, tags, even just relying on a property. The true “best way” is the method you’re most comfortable with. As long as it’s (generally) bug free, players won’t care what way you do it. The only people who do care are other developers who think the world revolves around them.