of     1   

truman89
#144583872Tuesday, August 26, 2014 8:50 PM GMT

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.
truman89
#144583925Tuesday, August 26, 2014 8:51 PM GMT

In case anyone is wondering, here is the code for the first button. btn = script.Parent guis = btn.Parent.MenuItems:GetChildren() btn.MouseButton1Down:connect( function() for i, v in pairs(guis) do if v.Active == true then v.Visible = false v.Active = false elseif v.Active == false then v.Visible = true v.Active = true end end end)
truman89
#144584041Tuesday, August 26, 2014 8:52 PM GMT

Also, to clarify, the second button shows up, but I cannot click on it. It just won't work.
truman89
#144585320Tuesday, August 26, 2014 9:08 PM GMT

bump
truman89
#144585582Tuesday, August 26, 2014 9:11 PM GMT

Hold on, I think it's the code in the second post that's causing it. is there something wrong with it?
truman89
#144586545Tuesday, August 26, 2014 9:21 PM GMT

Someone, please help me. This problem is driving me insane.
truman89
#144587432Tuesday, August 26, 2014 9:47 PM GMT

Fixed. It's a Roblox bug. I'll show it in a thread on another board.

    of     1