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

Is it possible to automatically create instances? (especially image labels)

Asked by 6 years ago

My goal is to create many particles on the screen, quickly and easily, and give them tasks (through events?). Imagine a button that sparkles whenever there's a 50% off deal, or snow particles on the gui that each move differently and have a different appearance. I'd love to do something like this:

for i = 1, 20 do
    i = Instance.new("ImageLabel")
    -- etc., etc.
    -- events which cause each instance to move differently
end

Is something like this possible? Or would I have to add every instance separately, give them unique names, and repeat the script for every instance?

0
Like object particles? if it is object particles then no, it's not possible. If you mean like GUI tiny particles then yes it's possible but, in my experience, I've made induvidual variables for the GUI particles and used them. TheLightningRises 56 — 6y
0
Personally I'd make a giant image with a ton of tinier images and make that move in a certain way, and if that's not randomized then just add a few more and do that as well. Should make a good effect. Tomstah 401 — 6y

Answer this question