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

why doesn't the Character Clothing Dont appear in studio and in-game?

Asked by 8 years ago

This is the script

This is the script
-----[[Scripted by bradleyawsome]]-----
game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        wait(6)
                if character then
            for i, v in pairs(character:GetChildren()) do
                if v:IsA("Shirt") then 
                    v:remove()
                        end     
                    end 
                end
        if character then
            for i,v in pairs (character:GetChildren()) do
                if v:IsA("Pants") then
                    v:remove()
                end
            end
        end
        if character then 
            for i,v in pairs(character:GetChildren()) do
                if v:IsA("Hat") then
                    v:remove()
                end
            end
        end
        local Shirt = Instance.new("Shirt", character)
        Shirt.Name = "DefaultS"
        Shirt.ShirtTemplate = "https://www.roblox.com/Kestrel-Grey-Polo-item?id=188448874"  
        local Pants = Instance.new("Pants", character)
        Pants.Name = "DefaultP" 
        Pants.PantsTemplate = "https://www.roblox.com/Kestrel-Black-Textured-Pants-Bottom-item?id=220200871"                    
    end)
end)

What it is suppose to do is 1.Delete Character Hats,Shirt,Pants 2.make new pants and shirt 3.put the New pants and shirts in the character

everything in that list works but the thing is they shirts and pants don't even show up on the character! there no errors in output it like the character clothes are invisible

0
Did you subtract 1 from the end of the IDs? User#11440 120 — 8y
0
no bradleyawsome 10 — 8y

Answer this question