and also, if applicable, how could multiple guis pop up when a brick is touched?
script.Parent.Touched:connect(function (hit)
if hit.Parent and game.Players:FindFirstChild(hit.Parent.Name) then
Play = game.Players[hit.Parent.Name]
if Play:FindFirstChild("PlayerGui") and not Play.PlayerGui:FindFirstChild(GUI.Name) then
GUI:Clone().Parent = Play.PlayerGui
end
end
end)
it is going to be for a shop gui, so once you touch the shop, a menu would pop up where you can buy items, i just want the gui popping up done also, the screenguis name is ShopGui1

2 comments
This code doesn't work for you? It looks fine to me.
it doesn't work for me :/