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

This script is supposed to change the decal every second?

Asked by 10 years ago

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

Log in to vote
1
Answered by 10 years ago

EDIT: 2

Make all of them "http://www.roblox.com/asset/?id=IDNUMBER"

0
Edited... Grenaderade 525 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

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.

Log in to vote
0
Answered by
BlackJPI 2658 Snack Break Moderation Voter Community Moderator
10 years ago

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
Log in to vote
0
Answered by 10 years ago

OK make all the wait ones into (wait)2 for safty

Log in to vote
0
Answered by 10 years ago

hears a model of it http://www.roblox.com/4-U-item?id=166555110 can edit it if you want but this is rilly easy. so have fun.

Answer this question