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

How do you enable/disable something (Particle Emitter)?

Asked by 9 years ago

The particle emitter parts aren't working (Showing up and then disappearing, like a rain shower) Please help! Thanks

while true do
    wait(3) 
    game.Lighting.OutdoorAmbient = Color3.new(.2,.2,.5)
    game.lighting.Brightness(-10)
        wait(15)
        game.Workspace.Rain.ParticleEmitter.Enabled = true
        wait(120)
        game.Workspace.Rain.ParticleEmitter.Enabled = false
        wait(10)
        game.Lighting.Brightness(1)
        game.Lighting.OutdoorAmbient = Color3.new(125,125,125)
    wait(400)
end

1 answer

Log in to vote
3
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

You're actually doing this properly, your error is on line 4.

lighting does not exist, and Brightness is a property, not a method:

game.Lighting.Brightness = -10

And again on line 10:

game.Lighting.Brightness = 1
0
Ah, ok thank you branflakes1099 30 — 9y
Ad

Answer this question