I tried to make it so whenever you press a button, some pictures appear and the shop button disappear. The shop button does disappear, but the pictures (and text buttons) WILL NOT APPEAR! This is very annoying, can someone tell me whats wrong with the script?
local a = 0
local b = script.Parent.ExtraObby
local c = script.Parent.ExtraStages
local d = script.Parent.MoreSoon
local e = script.Parent.Sword
local f = script.Parent.VIP
local g = script.Parent["skip stage"]
local h = script.Parent.tips
local i = script.Parent
script.Parent.MouseButton1Click:connect(function()
a = a + 1
if a == 1 then
b.Visible = true
c.Visible = true
d.Visible = true
e.Visible = true
f.Visible = true
g.Visible = true
h.Visible = true
i.Visible = false
end
if a == 2 then
b.Visible = false
c.Visible = false
d.Visible = false
e.Visible = false
f.Visible = false
g.Visible = false
h.Visible = false
i.Visible = true
a = 0
end
end)
while wait(2) do
print("a is equal to " .. a .."!")
end

1 comment
oh yeah haha thanks