I have a text button which makes another text button visible. The first one works just fine, but when I go to press the other text button, it doesn't work. Here is the code for the second one.
btn = script.Parent
guis = btn.Parent.Parent.Parent.InventoryGui:GetChildren()
btn.MouseButton1Down:connect( function()
print("Test")
Items = btn.Parent.Parent.Parent.Parent.Items:GetChildren()
NItems = #Items
Modul = NItems%12
if Modul == 0 and NItems ~= 0 then
NPages = NItems/12
elseif Modul == 0 and NItems == 0 then
NPages = 1
elseif Modul ~= 0 then
NPages = math.ceil( NItems/12 )
end
print( NPages.toString() )
end)
I honestly don't get why it's doing this. |