As boldly asked in the title. I do not know and have tried my best to find on the internet about scripts that generate preset textbuttons on the amount of objects within a folder, that have value 1 and not 0. I had some ideas, like GetChildren, but with detecting values (probably using i,v in pairs). But after that I’m completely stuck on my mind. Please answer. Thanks in advance, even for trying.
To accomplish your goal I have a way you can do it.
--When you change the value I use this function to activate an event. script.Parent.Value.Changed:Connect(function() --if you want it to only happen on a certain value do if script.Parent.Value.Value == 5 then script.Parent.Visible = true end end)