game.Players.PlayerAdded:connect (function(players)
players.CharacterAdded:connect (function(character)
--Waiting
game.ServerStorage:WaitForChild("UniformCode")
local plrfile = game.ServerStorage.UniformCode:WaitForChild(players.Name)
local Codes = plrfile:WaitForChild("Codes")
local Hats1 = Codes:WaitForChild("Hats1")
local Hats2 = Codes:WaitForChild("Hats2")
local Hats3 = Codes:WaitForChild("Hats3")
local Shirts = Codes:WaitForChild("Shirts")
local Pants = Codes:WaitForChild("Pants")
local BodyColors = Codes:WaitForChild("BodyColors")
local Express = Codes:WaitForChild("Expressions")
--Assigning
if BodyColors.Value == 0 then
character:GetChildren("Body Colors"):Destroy()
end
end)
end)
Alright I have this script when you join the game it gives random outfit, well I'm working on a script that does so. Anyway my problem happens on line 19 when Im trying to remove all the things the player has(exp their bodycolor) can someone tell me how to remove BodyColors from the players model?

3 comments
GetChildren() does not get arguments passed to it, and will return a table of items. Instead try, character:FindFirstChild("Body Colors")
it should be character[Body Colors]:GetChildren():Destroy or character:FindFirstChild ("Body Colors"):Destroy ()
You can't destroy a table.....................