Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to speed process of scripting an animated decal?

I already created my 180 decals (with some help of a chrome extention) and I want to know how to make it into a sequence in roblox studio. I know the scripting but it would take a long time to insert the IDs to the script 180 times. Is there a shorter way to do this? I've heard Clonetrooper made a plugin or something but never released it...

1 answer

✓ Accepted answer

Theres a way to upload decals to you game directly into roblox studio- through the game explorer. After this, right click on assets. By doing this, you can choose to upload multiple images.

That way, by doing

for i,v in pairs(game.Assets.Images:GetChildren()) do
	play(v) --v being the image as a decal, assuming you have a play function as you said you had the code
end

You can go through all of the images, and do something to each of them. Hope this helped!

3 comments

0

I knew basic scripting but I don't know how to use the play function, can you help me on the play function? Sorry if im being annoying about asking

0

Its not a real function, and its always great to ask! If you dont know how to set a function- well, its easy. Just write: function functionname(), with the paramaters in the parentheses, in this case being the decals. Below this, you can put whatever code you wish to run when the function is called. You can change the name I put, "play" in my code to whatever you wish!

0

ok thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.