I’m trying to make a billboard that will change the decal every 5 seconds, the code below isn’t the best but it’s just testing if the system will work. Right now it doesn’t give any errors, goes through the code properly but the decal just changes to white. I tried another thing I found on devforum but that didn’t work either. It still won’t work if I have the decals uploaded in the game. The script is a normal script.
local ID1 = ID
local ID2 = ID
while true do
local decal = script.Parent.Decal
decal.Texture = ID1
wait(5)
decal.Texture = ID2
wait(5)
end
Make sure you’re putting a “rbxassetid://” before the image, and in order to get the (real?) image code, you have to first enter the code you want into a decal and press enter, then copy the new code in the image code box and use that.
This is what I changed my code to but dosen’t seem to work, I got this error Image https://assetdelivery.roblox.com/v1/asset?id=ID failed to load. Error 403: Asset type does not match requested type
ID is the ID number btw
local ID1 = ID
local ID2 = ID
while true do
local decal = script.Parent.Decal
decal.Texture = "rbxassetid://" .. ID1
warn("1")
wait(5)
decal.Texture = "rbxassetid://" .. ID2
warn("2")
wait(5)
end
Can you show me your “ID” values?
7305313233 and 7270703618 are the IDs
Here’s an example of what I mean by this:
But how do I do this in the script, the idea is to have the decals rotate
Never mind that, I realised you already have the correct codes. Try making sure you are using the correct codes in your script, I’ve tested the codes on a decal in studio and it works for me.
Did this another way with multiple decals