Hello, this script doesn't close the GUI can you tell me why?
local player = script.Parent.Parent.Parent.Parent.Parent
local Box = script.Parent.Parent.Parent.Frame -- get the GUI to close
local function buy()
Box.Visible = false -- here the code doesn't hide the GUI
end
script.Parent.MouseButton1Down:connect(buy)

2 comments
Sorry What Are You Trying To Do?
Is this in a local script?