How do I get this to only give the GUI once until the GUI doesnt exist in the player again?
GUI = script.Parent.ShopGUI:Clone()
function Touch(hit)
local add = GUI:Clone()
human = hit.Parent:FindFirstChild("Humanoid")
player = game.Players:GetPlayerFromCharacter(hit.Parent)
add.Parent = player.PlayerGui
end
script.Parent.Touched:connect(Touch)

3 comments
I see that you have commented on my answer but I deleted it. What were you going to say? I didn't get to see it. I deleted it because I thought you meant that you never wanted them to see the script again. You were too broad but I'm sorry I couldn't understand you. Also the thing that Alphawolvess has is called a Debounce. http://wiki.roblox.com/index.php?title=Debounce
I think I commented on a different answer
No but it said something in my notifications.