I’ve been trying to make a script which gets a random decal id, via InsertService:GetFreeDecals(), however while the script can get a random decal’s asset id, when it tries to apply it, it fails to load. I’ve looked for a solutions but nothing has helped for me. I figure this is a problem with how I wrote the link, but I can’t be certain.
local insert = game:GetService("InsertService")
local array = insert:GetFreeDecals("winning",math.random(10,20))
local a2 = array[1]
local a3 = a2["Results"]
local a4 = a3[math.random(1,21)]
local id = a4["AssetId"]
print(a4)
local tx = "rbxassetid://" .. tostring(id)
script.Parent.r.Texture = tx
script.Parent.r2.Texture = tx