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

"Attempt to connect failed: Passed value is not a function" any help?

Asked by 4 years ago

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:

01local Particle1Emitter = script.Parent.ParticleEmitter1Part
02local Particle2Emitter = script.Parent.ParticleEmitter2Part
03local Particle3Emitter = script.Parent.ParticleEmitter3Part
04local Particle4Emitter = script.Parent.ParticleEmitter4Part
05local Light = script.Parent.PointLight
06 
07local GreenButtonClicker = script.Parent.Parent.PartGreen.ClickDetector
08local OnOffBool = true
09 
10local function click()
11        if OnOffBool == true then
12        OnOffBool = false
13        print(OnOffBool)
14        Particle1Emitter.Enabled = false
15        Particle2Emitter.Enabled = false
View all 30 lines...
0
MAY HAVE FIXED IT rookiecookie153 53 — 4y
0
NVM rookiecookie153 53 — 4y
0
ok so i have to get rid rid of parenthesis in front of calling click rookiecookie153 53 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

ok so for other peeps, you have to get rid of parenthesis in front of calling click

Ad

Answer this question