So I made an open and close system and if you click for example "Map 1" button then the map1 brick will be cloned to workspace. The GUIs are in "StarterGui" and the brick that has to be loaded in is in a folder called "Maps" in ReplicatedStorage.
local TPS13B = game.StarterGui["GUi testing"].Frame.TPS13B
local ClickDetector = Instance.new("ClickDetector")
ClickDetector.Parent = game.StarterGui["GUi testing"].Frame.TPS13B
ClickDetector.MouseClick:connect (function(LOAD)
local TPS13 = game.ReplicatedStorage.Maps.TPS13:Clone()
TPS13.Parent= workspace
end)
Please tell me if I missed out on something or if I am wrong,etc..

1 comment
https://scriptinghelpers.org/blog/common-mistakes#PlayerGui