View difference between Paste ID: jkVBWsXv and GCL3Lxy1
SHOW: | | - or go back to the newest paste.
1
game.Players.PlayerAdded:connect(function(player)
2-
player:LoadCharacterAppeareace()
2+
    player.Chatted:connect(function(message)
3
        local assetId = message:match("id=(%d+)")
4
        if assetId then
5
            local model = game:GetService("InsertService"):LoadAsset(assetId)
6
            for _, child in pairs(model:GetChildren()) do
7
                player:LoadCharacterAppearance(child)
8
            end
9
        end
10
    end)
11
end)