I tried executing this code in Studio
and only returns this error.
is there something I need to do to fix this?
I tried executing this code in Studio
and only returns this error.
is there something I need to do to fix this?
local insertService = game:GetService("InsertService")
local page = unpack(insertService:GetFreeDecals("Cats",0)) -- Search for "Cats" on Page 1.
for i = 1,page.TotalCount do
local item = page.Results[i]
print("Item #"..i)
for key,value in pairs(item) do
print(" " .. key .. ": " .. value)
end
end
This worked on my end.
https://developer.roblox.com/en-us/api-reference/function/InsertService/GetFreeDecals
The snippet posted here has a capitalisation typo in the service’s reference.
I executed the code before Roblox fixed their server issue
Ok so the code works in studio now but it doesn’t work in game