|
| 14 Sep 2015 09:17 PM |
I just need a chunk of a script that I really can't figure out
What I need it to do: When the "ball" hits the arm I want it to explode. Although, I don't want it explode UNLESS it hits that specific arm. I already have the explosion set up and so is the arm, I just need the scripting area.
Pretty simple, but I'm kind of lost for some reason. Thanks for your answers!
|
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 09:19 PM |
arm.Touched:connect(function(hit) if hit.Name == ball.Name then local explosion = Instance.new("Explosion",game.Workspace) explosion.Position = ball.Position ball:Destroy() end end) |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 09:20 PM |
| Why do you put a explosion just in the workspace and do nothing else... |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 09:21 PM |
| Because it explodes automaticly |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 09:26 PM |
| It'll just explode for no reason so you have to tell it where it will be and when it is supposed to explode. |
|
|
| Report Abuse |
|
|
| |
|