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 5 years ago
Edited 5 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 — 5y

Answer this question