You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a randomized decal that changes every 10 seconds. -
What is the issue? Include screenshots / videos if possible!
The decal goes invisible after changing and printing the texture outputs a different texture from the actual texture inside the decal. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have searched the devforum to fix this but the issues are different and I have tried using rbxassetid instead.
local part = script.Parent.Image
local decal = script.Parent.Image.Decal
local cd = 10
while true do
local rng = math.random(1,5)
if rng == 1 then
decal.Texture = "http://www.roblox.com/asset/?id=10366960892"
wait(cd)
elseif rng == 2 then
decal.Texture = "http://www.roblox.com/asset/?id=10615364360"
wait(cd)
elseif rng == 3 then
decal.Texture = "http://www.roblox.com/asset/?id=7669757659"
wait(cd)
elseif rng == 4 then
decal.Texture = "http://www.roblox.com/asset/?id=3530190159"
wait(cd)
elseif rng == 5 then
decal.Texture = "http://www.roblox.com/asset/?id=866428496"
wait(cd)
end
print(decal.Texture)
wait()
end
Help is appreciated !