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

I'm not sure how to go about this correctly?

Asked by 4 years ago
game.Players.PlayerAdded:connect(function(plr)
    local humanoid = plr.Character:FindFirstChild("Humanoid")
    plr.Character:FindFirstChild("Pants"):Destroy()
    plr.Character:FindFirstChild("Shirt"):Destroy()
    plr.Character:FIndFirstChild("ShirtGraphic"):Destroy()

    for _, accessory in ipairs(humanoid:GetAccessories()) do

    humanoid:RemoveAccessories()
end     
    end)
0
I'm also getting a random error for using FindFirstChild to index a nil value. I don't see why I'm getting this error GamingHDstudios 17 — 4y

Answer this question