-- Function to change the transparency of a specific accessory for everyone
function changeAccessoryTransparency(playerName, accessoryName, transparencyValue)
    -- Check if the player exists in the game
    local player = game.Players:FindFirstChild(playerName)
    if not player then
        warn("Player not found: " .. playerName)
        return
    end

    -- Check if the player's character exists in the workspace
    local character = game.Workspace:FindFirstChild(playerName)
    if not character then
        warn("Character not found in workspace for player: " .. playerName)
        return
    end

    -- Locate the accessory in the character's model
    local accessory = character:FindFirstChild(accessoryName)
    if not accessory then
        warn("Accessory not found: " .. accessoryName)
        return
    end

    -- Loop through all the children of the accessory to find parts and change their transparency
    for _, part in pairs(accessory:GetChildren()) do
        if part:IsA("BasePart") then
            part.Transparency = transparencyValue
        end
    end

    print("Transparency of " .. accessoryName .. " set to " .. transparencyValue .. " for " .. playerName)
end

-- Example usage:
changeAccessoryTransparency("Hazbinhotel590", "Leather Jacket Man", 0.5)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: