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

How would I have an script, based on values, make preset textbuttons for it?

Asked by 4 years ago

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.

0
By generate do you mean create a text button? kom297 -4 — 4y
0
Yes, from a preset one (distance between eachother etc.) IvanJupiter 36 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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)
0
I actually want to have the script generate a textbutton and autosort it (having a preset distance between the buttons etc. and naming ot to the Value.Name if Value.Value == 1 IvanJupiter 36 — 4y
Ad

Answer this question