|
| 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
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 01 Apr 2013 06:12 PM |
| Might help if you spelt 'Instance' correctly :) |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2013 06:12 PM |
| Thanks for spotting that out. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2013 06:12 PM |
| Explosion = Instance.new("Explosion", Workspace.Flammable) |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Apr 2013 06:13 PM |
| Well I guess that was the only mistake. :P |
|
|
| Report Abuse |
|
|