Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does kohl's admin reformat shirt ID's into template ID's?

Asked by
kylaex 17
3 years ago

Does anyone have any idea on how Kohl's admin only needs the shirt ID to shirt a player? I'm currently making a command that permanently shirts a team when asked to and also resets the team shirt ID when also asked to, but I have to use the actual template ID to shirt the team, rather then the ROBLOX shirt ID, this makes it much harder for my community members to use the command.

Does anyone have any idea how to make a command that gest the template ID from the shirt ID or reformats the actual ID?

1 answer

Log in to vote
0
Answered by 3 years ago
local function getShirtTemplateFromShirtID(id)
    local decal=Instance.new"Decal"
    decal.Texture="https://www.roblox.com/catalog/"..id
    local template=decal.Texture
    return unpack{tonumber(template:sub(32,template:len())),template}
end

Ad

Answer this question