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

How To Fix A Particle To Work When There Is A Humanoid Player Inside The Suit?

Asked by
ImfaoXD 158
8 years ago

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...

Answer this question