Hi, I am trying to make an aura equipping system. I have an R6 rig that has all of the VFX I want to equip to the character.
The problem is, there are particle emitters and attachments in the different body parts of the rig and I’m not sure how I’d tell the script to individually get each one of those instances and clone and parent them to the correct body part, as well as delete it when another aura is equipped.
Example:
I would like all of the particles above to clone onto the correct parts of the players character
local Character = Path.To.Character.You.Are.Cloning
local CharacterNew = Path.To.Clone.Character
for i, v in ipairs(Character:GetDescendants()
local Bodypart = CharacterNew:FindFirstChild(v.Parent.Name)
if v:IsA("ParticleEmitter") and Bodypart then
v:Clone().Parent = Bodypart
end
end)
for deleting, you’d want to do something similar
local Character = Path.To.Character
for i, v in ipairs(Character:GetDescendants()
if v:IsA("ParticleEmitter") then
v:Destroy()
end
end)
-- under here you'd clone in the new aura particles!