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

This script is supposed to change the decal every second?

while true do --Loop script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223333" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223346" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223360" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/User.aspx?ID=55223371" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223387" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223405" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223418" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223429" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/User.aspx?ID=55223443" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223567" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223469" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223485" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223513" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223524" wait(1) script.Parent.Decal.Texture="http://www.roblox.com/Item.aspx?ID=55223537" wait(1) end

--The property says the decal's texture is changing, but the decal on the brick is completely blank

5 answers

First off, are the decals approved? And also, I think it takes some time for decals to load, meaning you can't change them that fast.

Tip; Place print functions to see if there is any piece of code not working.

In this case, you should use a loop in order to make it much more efficient. Your error was that you did not put http://roblox.com/asset/?id= in front of the decal id.

local decal = script.Parent -- Location of Decal
local decals = {
	[1] = 55223333,
	[2] = 55223346,
	[3] = 55223360,
	[4] = 55223371,
	[5] = 55223387,
	[6] = 55223405,
	[7] = 55223418,
	[8] = 55223429,
	[9] = 55223443,
	[10] = 55223567,
	[11] = 55223469,
	[12] = 55223485,
	[13] = 55223513,
	[14] = 55223524,
	[15] = 55223537
}

while true do
	for number, id in ipairs (decals) do
		decal.Texture = "http://roblox.com/asset/?id=" .. id
		wait(1)
	end
end

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