https://gyazo.com/5fe2daa70c48e094fc65647396e769fa My script only removes my shirt
local replicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = replicatedStorage.RemoteEvent local insertService = game:GetService("InsertService")
remoteEvent.OnServerEvent:Connect(function(localplayer, code, assetId) local character = localplayer.Character local humanoid = character.Humanoid
if code == "Clear" then humanoid:RemoveAccessories() elseif code == "Hats" then local hatId = tonumber(assetId) local hat = insertService:LoadAsset(hatId):GetChildren()[1] hat.Parent = localplayer.Character elseif code == "Pants" then local pantsId = assetId humanoid.Parent.Pants.PantsTemplate = pantsId print(pantsId) elseif code == "Shirts" then local shirtsId = assetId print(humanoid) print(humanoid.Parent.Shirt) humanoid.Parent.Shirt.ShirtTemplate = assetId print(shirtsId) end
end)
Specifically this section was ran
elseif code == "Shirts" then local shirtsId = assetId print(humanoid) print(humanoid.Parent.Shirt) humanoid.Parent.Shirt.ShirtTemplate = assetId print(shirtsId) end