Loops/functions aren't starting in my script and it won't even make it to then end, any fixes?
I have a script which is supposed to turn on and off particles depending on if it's clicked or with a random number generator, I only got the "can break" print to show, can someone help me? An image of the explorer is in the gyazo link.
https://gyazo.com/3039b5bdd28980d0555e4d82af89f426
01 | local clickDetector = script.Parent.ClickDetector |
02 | local particle 1 = script.Parent.Particle 1. ParticleEmitter |
03 | local particle 2 = script.Parent.Particle 2. ParticleEmitter |
04 | local particle 3 = script.Parent.Particle 3. ParticleEmitter |
09 | local Break = math.random( 1 , 10 ) |
11 | particle 1. Enabled = true |
12 | particle 2. Enabled = true |
13 | particle 3. Enabled = true |
19 | particle 1. Enabled = false |
20 | particle 2. Enabled = false |
21 | particle 3. Enabled = false |
25 | clickDetector.MouseClick:connect(Particlefix) |