So I have this script that should delete only 3 items, if the player has them, but it deletes the whole character, any help? Heres part of the script.
local character = Player.Character
local boi = character:GetChildren()
for i, boi in pairs(boi) do
if boi:IsA("BasePart") and boi.Name == "Gucci" or "LouisVuitton" or "Versace" then
boi:Destroy()
end
end
local character = Player.Character
local boi = character:GetChildren()
for i, boi in pairs(boi) do
if boi:IsA("BasePart") and (boi.Name == "Gucci" or boi.Name == "LouisVuitton" or boi.Name == "Versace") then
boi:Destroy()
end
end