"Attempt to connect failed: Passed value is not a function" any help?
whenever i run this script, at line 30 i get this error.
20:03:48.092 - Attempt to connect failed: Passed value is not a function
here is my code:
01 | local Particle 1 Emitter = script.Parent.ParticleEmitter 1 Part |
02 | local Particle 2 Emitter = script.Parent.ParticleEmitter 2 Part |
03 | local Particle 3 Emitter = script.Parent.ParticleEmitter 3 Part |
04 | local Particle 4 Emitter = script.Parent.ParticleEmitter 4 Part |
05 | local Light = script.Parent.PointLight |
07 | local GreenButtonClicker = script.Parent.Parent.PartGreen.ClickDetector |
11 | if OnOffBool = = true then |
14 | Particle 1 Emitter.Enabled = false |
15 | Particle 2 Emitter.Enabled = false |
16 | Particle 3 Emitter.Enabled = false |
17 | Particle 4 Emitter.Enabled = false |
19 | elseif OnOffBool = = false then |
22 | Particle 1 Emitter.Enabled = true |
23 | Particle 2 Emitter.Enabled = true |
24 | Particle 3 Emitter.Enabled = true |
25 | Particle 4 Emitter.Enabled = true |
30 | GreenButtonClicker.MouseClick:Connect(click()) |