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 » Scripting Helpers
Home Search
 

Re: [Help] Explosion when clicked

Previous Thread :: Next Thread 
FriendlyLOLpwnzr is not online. FriendlyLOLpwnzr
Joined: 12 Sep 2011
Total Posts: 9320
01 Apr 2013 06:09 PM
I made a script that currently does not work in which I wanted to make an object explode after it has been clicked.

Here is the script:

function onClicked()
Explosion = Instace.new("Explosion", Workspace.Flammable)
Explosion.Position = Workspace.Flammable.Position
Explosion.BlastRadius = 10
Explosion.BlastPressure = 1000
script.Disabled = true
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

-------------------------------------------------------------------------------------------------------------------------------

I expected the script to explode right after it had been clicked, but it did absolutely nothing.

I am thinking I messed up on line 6 where it says script.Disabled = true, and I don't think it should say that. I don't know for sure, so I want help from you guys.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
01 Apr 2013 06:12 PM
Might help if you spelt 'Instance' correctly :)
Report Abuse
FriendlyLOLpwnzr is not online. FriendlyLOLpwnzr
Joined: 12 Sep 2011
Total Posts: 9320
01 Apr 2013 06:12 PM
Thanks for spotting that out.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
01 Apr 2013 06:12 PM
Explosion = Instance.new("Explosion", Workspace.Flammable)
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
01 Apr 2013 06:13 PM
q-q... ok
Report Abuse
FriendlyLOLpwnzr is not online. FriendlyLOLpwnzr
Joined: 12 Sep 2011
Total Posts: 9320
01 Apr 2013 06:13 PM
Well I guess that was the only mistake. :P
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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