After closing the shop gui, in which opens when you step on a certain part, it does not reopen, I will show you the code I did. Pop up shop:
function touch(hit)
if game.Players:findFirstChild(hit.Parent.Name) ~= nil then
player = game.Players[hit.Parent.Name]
if player.PlayerGui:findFirstChild("Info") == nil then
gui = script.Info:clone()
gui.Parent = player.PlayerGui
repeat
wait()
until (player.Character.Position - script.Parent.Position).magnitude > 0
end
end
end
script.Parent.Touched:connect(touch)
GuiNameHere.Enabled = true
Close/open: print("Close button loaded")
button = script.Parent window = button.Parent
function onClicked(GUI) window:remove() end script.Parent.MouseButton1Click:connect(onClicked)

4 comments
crys of laughter
i mean the toolbox is a start
im not a great scripter but somewere it says ~=? i dont know if thats causing an error
It does not work