generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Help

Previous Thread :: Next Thread 
TrafficHazard is not online. TrafficHazard
Joined: 27 May 2010
Total Posts: 411
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
TrafficHazard is not online. TrafficHazard
Joined: 27 May 2010
Total Posts: 411
09 Jul 2016 02:59 PM
bump
Report Abuse
TrafficHazard is not online. TrafficHazard
Joined: 27 May 2010
Total Posts: 411
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
TrafficHazard is not online. TrafficHazard
Joined: 27 May 2010
Total Posts: 411
09 Jul 2016 03:02 PM
crap I forgot game.workspace
Report Abuse
TrafficHazard is not online. TrafficHazard
Joined: 27 May 2010
Total Posts: 411
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image