So I have this remover and it does not work, I tried but its not doing anything, also no output errors, any help?
for i, obj in pairs(character:GetChildren()) do
if obj.className=='Part' and
obj.Name== 'LouisVuitton' or 'Versace' or 'Gucci' then
obj:Destroy()
end
end
Youâre not using the âorâ correctly, you put what you want to check in each âorâ instead of just putting the string. (You need to repeat for each or)
for i, obj in pairs(character:GetChildren()) do
if obj.ClassName == "Part" and
obj.Name == "LouisVuitton" or obj.Name == "Versace" or obj.Name == "Gucci" then
obj:Destroy()
end
end
local Fendi = game.ServerStorage.Belts.Fendi
local LouisVuitton = game.ServerStorage.Belts.LouisVuitton
local Versace = game.ServerStorage.Belts.Versace
local Gucci = game.ServerStorage.Belts.Gucci
local Custom = game.ServerStorage.Belts.Custom
local re = Instance.new("RemoteEvent",game.ReplicatedStorage.BackpackEvents)
re.Name = "GiveFendi"
re.OnServerEvent:Connect(function(Player)
local character = Player.Character
local boi = character:GetChildren()
for i, obj in pairs(character:GetChildren()) do
if obj.ClassName == "Part" and
obj.Name == "LouisVuitton" or obj.Name == "Versace" or obj.Name == "Gucci" then
obj:Destroy()
end
end
Player:WaitForChild("leaderstats").Belts.Value = 1
print("FENDIII")
wait(1)
local newRadio = Fendi:Clone()
newRadio.Parent = character
newRadio.CFrame = character:WaitForChild("LowerTorso").CFrame * CFrame.Angles(0,3.14,6) -- or Torso if you use R6
local weld = Instance.new("Weld")
weld.Part0 = newRadio
weld.Part1 = character:WaitForChild("LowerTorso")
weld.C0 =newRadio.CFrame:inverse()
weld.C1 = character:WaitForChild("LowerTorso").CFrame:inverse()
weld.Parent = newRadio
end)
I recommend not using the parent argument of Instance.new which is pretty bad for performance (Can read more about it here.
Are you sure that the playerâs character is added correctly?
Iâd change variable character to: