Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Multiple part clone isn't working?

Asked by 6 years ago
Edited 6 years ago

I was making a function that would clone a ParticleEmitter to your character, but it won't seem to work. Help?

local function MakeUltraInstinct(Character)
    local AuraFolder = script.Parent.UltraInstinct

    local UIPieces = AuraFolder:GetChildren()

    for i = 1, #UIPieces do
        local Clone = UIPieces[i]:Clone()

        for _, child in pairs(Character:GetChildren()) do
            if child:IsA("MeshPart") then
                Clone.Parent = child
            end
        end
    end
end

This only clones to LowerTorso

1
Use `IsA("BasePart")` to include Parts, MeshParts, and UnionOperations. climethestair 1663 — 6y

Answer this question