PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Player:LoadCharacterAppearance

Player:LoadCharacterAppearance

Oct 01 2018, 1:33 AM PST

This script gives any Hat/Gear/Face/Body Part to a player once they chat the URL of the asset.

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(message)
        local assetId = message:match("id=(%d+)")
        if assetId then
            local model = game:GetService("InsertService"):LoadAsset(assetId)
            for _, child in pairs(model:GetChildren()) do
                player:LoadCharacterAppearance(child)
            end
        end
    end)
end)