How to make a unlock system?

So I’ve been wanting to make a unlock system that unlocks characters, new npcs/characters to talk to, new items on the search index, a discovery, etc. But I don’t have an idea of how to make one. If anyone has an idea please reply I really want to know.

All I want to know is what they use to make a unlock system.

1 Like

How would you unlock them? Do you have to get a certain amount of xp or something?

1 Like

They would unlock them by a discovery/ first time seeing something.
Ex: Scanned an tree, tree is been added in your index. So now you can learn more about tree.

1 Like

Well you could do this I suppose:

Just something simple like this.

local NPC = game.ReplicatedStorage.NPCs

If HasGottonTree then
local clone = NPC.TreeNPC:Clone()
clone.Parent = Workspace

— code
end

2 Likes