|
| 09 Jul 2016 02:50 PM |
Alright, so I suck at scripting and im trying to make a bricks particle emitter turn on or off when touched, whats wrong?
pe = script.Parent.ParticleEmitter function ontouch() if pe.enabled == false then pe.enabled = true else pe.enabled = false end script.Parent.Touched:connect(ontouch()
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jul 2016 03:02 PM |
ok its now
function ontouch() if game.Boom.ParticleEmitter.Enabled == false then game.Boom.ParticleEmitter.Enabled = true else game.Boom.ParticleEmitter.Enabled = false end script.Parent.Touched:connect(ontouch()
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 03:02 PM |
| crap I forgot game.workspace |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 03:03 PM |
function ontouch() if game.Workspace.Boom.ParticleEmitter.Enabled == false then game.Workspace.Boom.ParticleEmitter.Enabled = true else game.Workspace.Boom.ParticleEmitter.Enabled = false end script.Parent.Touched:connect(ontouch()
|
|
|
| Report Abuse |
|
|
pidgey
|
  |
| Joined: 16 Jan 2008 |
| Total Posts: 2739 |
|
|
| 09 Jul 2016 03:11 PM |
did u try turning it on
beep beep +1 post woohoo |
|
|
| Report Abuse |
|
|