Rate My Avatar Script | BAD DECALS FINDER


Created by Sharp1ne

Features:

  • BAD DECALS FINDER
  •  
  • SCRIPT 1:
    •  Will extract all blacklisted decal ids into a json file
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local HttpService = game:GetService('HttpService')

ReplicatedStorage.Moderation.OnClientEvent:Once(function(...)
local args = {...}

if args[1] == 'New Image Blacklist Data' then
local raw_decal_ids = args[2]
local decal_ids = {}

for _, decal_id in pairs(raw_decal_ids) do
decal_ids[#decal_ids + 1] = decal_id
end

print('Got ' .. #decal_ids .. ' decal ids (saved to ".\decal-ids.json" file)')
writefile('decal-ids.json', HttpService:JSONEncode(decal_ids))
end
end)
  • SCRIPT 2:
    • Will extract all the images from their decal ids into separate files
    • run after the first script (SCRIPT 1)
local HttpService = game:GetService('HttpService')

local function save_decal(id, image_data)
if not isfolder('ext-decals') then
makefolder('ext-decals')
end

writefile('ext-decals\decal_' .. id .. '.png', image_data)
end

local decal_ids = HttpService:JSONDecode(readfile('decal-ids.json'))
local start_index = 1

while start_index < #decal_ids do
local end_index = math.min(#decal_ids, start_index + 50 - 1)
local decal_ids_part = {}

for i = start_index, end_index do
decal_ids_part[#decal_ids_part + 1] = decal_ids[i]
end

local url ='/v1/assets?assetIds=' .. table.concat(decal_ids_part, ',') .. '&size=42x42&format=Png&isCircular=false'
local responce = HttpService:JSONDecode(game:HttpGet(url))

print('Extracted ' .. end_index - start_index + 1 .. ' images (saved to ".\ext-decals" folder)')
for _, decal in pairs(responce.data) do
save_decal(decal.targetId, game:HttpGet(decal.imageUrl))
end

start_index += 50
end

print('Done')
  • SCRIPT 3:
    • If you want to use them in the same game
local decal_id = 0 -- replace 0 with any decal id

game:GetService("ReplicatedStorage").CustomiseBooth:FireServer('Update', {
DescriptionText = '',
ImageId = tostring(decal_id)
})

ENJOY!

Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script!