Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

1 comment

0

Ah, ok thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.