function module.Emit(Ins : Instance, Recursive : boolean?, DestroyOnFinish : boolean)
if DestroyOnFinish then
local con = Ins.ChildRemoved:Connect(function()
if #Ins:GetChildren() == 0 then
Ins:Destroy()
end
end)
task.delay(15,con.Disconnect,con)
end
for _, child : Instance in (if Recursive then Ins:GetDescendants() else Ins:GetChildren()) do
if child:IsA("ParticleEmitter") then
task.delay(child:GetAttribute("EmitDelay") or 0,child.Emit,child,child:GetAttribute("EmitCount") or 1)
if DestroyOnFinish then
task.delay((child:GetAttribute("EmitDelay") or 0) + child.Lifetime.Max,child.Destroy,child)
end
end
end
end
I'm not sure if i've been looking at studio for too long, but i actually cannot even understand with this error is saying to me right now
** You are now Level 6! **