|
| 24 Apr 2012 06:04 PM |
function onTouch(Part) x = game.Workspace.Part if x.Transparency == 0 then x.Transparency = 0.5 if x.CanCollide == false then x.CanCollide = true print(Hello) h = Instance.new("Explosion") h.Parent = game.Workspace.Part h.BlassPressure = 25 h.BlastRadius = 10 h.Position = Vector3.new(10, 10, 10) end end end script.Parent.Touched:connect(onTouch)
Help?
~Basquetbol~ |
|
|
| Report Abuse |
|
|
|
| 24 Apr 2012 06:21 PM |
| Multiple Parts in Workspace? If not then idk. |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 24 Apr 2012 06:22 PM |
Didn't I already fix this on your other thread?
1) you don't need to define the Part when the script is in the part. 2) explosion's parent should be in the workspace so everyone can see. 3) h.Position = script.Parent.Position OR h.Position = script.Parent.Position + Vector3.new(10,10,10) |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 24 Apr 2012 06:22 PM |
| And what exactly is your problem? |
|
|
| Report Abuse |
|
|
malachi11
|
  |
| Joined: 07 May 2008 |
| Total Posts: 2420 |
|
| |
|
| |
|