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

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

Asked by 7 years ago
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

Log in to vote
2
Answered by
Filipalla 504 Moderation Voter
7 years ago
Edited 6 years ago

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
0
Thank you, Filipalla! That seemed to work! KingCamembert 57 — 7y
0
Im Glad It Helped Filipalla 504 — 7y
Ad
Log in to vote
0
Answered by 7 years ago

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

Answer this question