--Made by airkor
local BuySword = game.StarterGui.ScreenGui.ShopGui:FindFirstChild("BuySwordFrame")
script.Parent.MouseButton1Click:connect(function()
if BuySword.Visible then
BuySword.Visible = true
end
end)
Hi, I am trying to open a gui by clicking down on a button. Unfortunately, It would not work.
I tried numerous things but unfortunately, none worked, may anyone give me suggestions?
Edit: The local BuySword is not on another line of code as shown on here.

3 comments
perhaps it may be something small i'm mising
Try removing line 6 and line 8
didn't work