I’m trying to make a script that animates bunch of decals without much lag, it only works for a single one but not many, i do not know how would I accomplish this.
I’ve tried using tables but that did not work. I am very disappointed that roblox would make something so simple into something so complicated.
NOTE: THERE ARE REAL ID NUMBERS; i just do not feel like sharing my images.
local textures = script.parent:GetDescendants()
while true do
textures.Texture = "http://www.roblox.com/asset/?id=[id numbers]"
wait(math.random(1,30))
textures.Texture = "http://www.roblox.com/asset/?id=[id numbers]"
wait(0.1)
textures.Texture = "http://www.roblox.com/asset/?id=[id numbers]"
wait(0.1)
textures.Texture = "http://www.roblox.com/asset/?id=[id numbers]"
wait(0.8)
textures.Texture = "http://www.roblox.com/asset/?id=[id numbers]"
wait(0.1)
textures.Texture = "http://www.roblox.com/asset/?id=[id numbers]"
wait(0.1)
end
the script returns no errors and the script seems to run, but no textures get changed.
this is how the folder is laid out; folder > script/ 2 parts > each part has one decal inside.