Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

button not activated when clicked?

Asked by 5 years ago

created a screen GUI and when you press the clear button it's supposed to clear it but nothing happens, could someone help me?

for i, v in pairs(workspace.Important.OrderScreen.main.Orders:GetChildren()) do
    if  v.Name ~= "UIListLayout" then
        v.ClearOrder.Activated:connect(function()
                orders[v.Name] = false
                v.Visible = false
                v.OrderText.Text = ''
                v.TableText.Text = ''
        end)
    end
end
0
R u doing it in starter gui and not the player gui? MahadTheIronSword 98 — 5y
0
It's a ScreenGui on a TV Thunder878712817 -6 — 5y
0
the for loop only runs once, so that means you literally have no time to press the button when the loop runs DeceptiveCaster 3761 — 5y
0
That didn't fix it, because once you call it it actively listens for it to be activated and should run the code once it is. Thunder878712817 -6 — 5y
0
cant you use gui.mousebutton1click? farizarps 132 — 5y

Answer this question