Okay so, basically. I get the contents of the model and clone it, change its parent to workspace. Now comes the hard part. The positioning of the child, changing its position to the torso of a character.
The model has many parts and has lightning shape, however when i position it to the torso all of the parts are then clustered together and the lightning shape loses its form. (because the parts that make up the lightning shape are literally stuffed together inside the torso)
if humanoid.Health <= 0 then local function appear(Part) Part.Position = hit.Parent.Torso.Position end local function color(Part) Part.BrickColor = BrickColor.new("Really black") end for _, limbs in pairs(hit.Parent:GetChildren()) do if limbs:IsA("BasePart") then color(limbs) end end for _, child in pairs(lightningmodel) do if child.Name == "Part" then child:Clone() child.Parent = workspace child.CanCollide = false --child.Position = hit.Parent.Torso coroutine.wrap(function() wait() appear(child) end)() end end