I'm trying to make this script to work when there is a player humanoid in it for it to work. I don't want the particles to run while the morph is in lighting. This is what I got so far... I don't know if I did this correctly. But can you guys help me fix it?
Part = script.Parent
Duration = Part:WaitForChild("Duration")
wait(Duration.Value)
if Part:IsA("Part") then
for i, v in pairs(Part:GetChildren()) do
if v:IsA("ParticleEmitter") then
v.Enabled = false
end
end
elseif Part:IsA("ParticleEmitter") then
Part.Enabled = false
end
Thank you...
