Basically, a close button that if it finds something in player's gui, delete the gui and delete the main gui. But it doesn't work, no errors
local GUI = game.Players.LocalPlayer.PlayerGui:FindFirstChild("WeaponShopLABEL")
local main = script.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
if GUI ~= nil then
print("nil") -- doesn't print
GUI:Destroy()
main:Destroy()
end
end)

3 comments
that won't work, your GUI variable is nil
I have fixed that.
Thanks, i will test it when im at pc!