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

How to make a looped change of decals on a brick?

while true do
	
	script.Parent.Decal.Texture = "http://www.roblox.com/asset/?id=483882356" 
	wait(6)
	script.Parent.Decal.Texture = "http://www.roblox.com/asset/?id=483874250"
	wait(6)
	script.Parent.Decal.Texture = "http://www.roblox.com/asset/?id=483892280"
	wait(6)
	script.Parent.Decal.Texture = "http://www.roblox.com/asset/?id=483878802"
	wait(6)
	
end

Here is my script thus far. It is supposed to change the decal texture/asset automatically on the brick every 6 seconds in a looped manner. Though, the brick stays blank. Here is the output:

15:26:45.589 - Image "http://www.roblox.com/asset/?id=483892280" failed to load in "Workspace.TV.Decal.Texture": Failed to resolve texture format

Any ideas?

2 answers

✓ Accepted answer

This should work! Wiki Links: Decals

while true do
    script.Parent.Decal.Texture = "rbxassetid://483882356" 
    wait(6)
    script.Parent.Decal.Texture = "rbxassetid://483874250"
    wait(6)
    script.Parent.Decal.Texture = "rbxassetid://483892280"
    wait(6)
    script.Parent.Decal.Texture = "rbxassetid://483878802"
    wait(6)
end

Or you can use a table reply to this if you want more help! Don't Forget To Accept If The Answer Helped

Loop/Table Version:

DecalsTable = {"rbxassetid://483882356", "rbxassetid://483874250", 
"rbxassetid://483892280", "rbxassetid://483878802"}
for i,v in pairs(DecalsTable)do
	script.Parent.Decal.Texture = v
	wait(6)
end

2 comments

0

Thank you, Filipalla! That seemed to work!

0

Im Glad It Helped

One of your decals may have been banned. I would try getting more decals.

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