So I have this part for an aura, basically it holds a bunch of particles and stuff that we clone into the corresponding player parts, after that I want to destroy the now empty part, however it’s not being destroyed for whatever reason:
game.Players.PlayerAdded:Connect(function(player)
wait(1)
player.CharacterAdded:Connect(function(character)
print("Add Aura")
local aura = game.ServerStorage.Powers.Auras[player.Class.Value.."Aura"]:Clone()
aura.Parent = character
for i, v in pairs(aura:GetChildren()) do
v.Parent = player.Character[v.Name]
end
print("Destroying: "..aura.Name)
aura:Destroy()
end)
end)
game.Players.PlayerAdded:Connect(function(player)
wait(1)
player.CharacterAdded:Connect(function(character)
print("Add Aura")
local aura = game.ServerStorage.Powers.Auras[player.Class.Value.."Aura"]
for i, v in pairs(aura:GetChildren()) do
v:Clone().Parent = player.Character[v.Name]
end
end)
end)
This won’t help at all as all of the part’s are already removed from the cloned aura because they got parented to the player.Character.WhateverPart so it’s already a