Help needed with house system

Hello,
I have created a system that spawns houses for theplayer, the players house is saved a intValue in the leaderstats script .
Recently I have been trying to add post boxes next to each house,The post box is for buying new houses and seeing which houses you own.
So now I am trying to make a gui template that duplicates in self and shows you all your different houses.
My problems are:

  1. I don’t know how to see how much or which houses does the player own,I only know what is the players currently equipped house.

  2. I don’t know how can I duplacate a gui template and change it to a different template gui with a script.

Here is how it look in the explorer:
asassdsd

The blue lines show what is important.

I currently have no scripts because I deleted all my scripts because they don’t work.

If you know any way I can achieve my goal please write a reply.

!!!Any help is appreciated!!!

By the way the screen gui is in StarterGui.

Soon I will be ofline(Please answer I created this post 2h ago!)