How Do I Build An Upgrade Tree Like In "Pets go"?

The problem is that i have no idea how to start… And even when an idea comes to my mind I hasitate to make it because it might not be the most ideal way to create it.

I’ve seen B Ricey video about skill trees which made me learn about the base that is needed for skill tree based systems

But again, it made me wonder if its the best way to create skill tree systems.
I’ve heard about metatables lately, I still cant say that i fully understand it, but do you think that creating a skill tree using metatables would be easier than a normal table? is it even how you use metatables?

Now what about the skill tree animation?
I thought about assigning each upgrade block its own “index”, The lower the index the closer it is to the middle, and then the animation would be played for each block but it will wait -index- seconds, or something like that.
But what if there’s an easier way to do it? like using roblox studio build in UI grid?

Reference:

To sum up my goal:
I want to make the most efficent upgrade tree possible, and… that is pretty much it.

Array of booleans in the player’s datastore to track what upgrades they own, then just create the gui like any other in-game store. getasync the datastore and return the array to determine what upgrades are buyable/owned. When you break it down to it’s basic elements its quite a simple concept, you just need to know what to build off of.

3 Likes