Choonwee
|
  |
| Joined: 05 Mar 2009 |
| Total Posts: 4776 |
|
|
| 19 Sep 2009 02:24 AM |
function Humanoid.Touched(part) script.Parent.Transparency = 0.5 script.Parent.CanCollide = false m = Instance.New("Message") m.Text = "MUAHAHAHA!" m.Name = "Tricked" m.Parent = game.workspace x = Instance.new("Explosion") x.BlastRadius = 25 x.BlastPressure = 10 x.Parent = game.Workspace x.Position = part.Position end
script.Parent.Touched:connect(Touched)
It won't work. |
|
|
| Report Abuse |
|
|
R4P18
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 4025 |
|
|
| 19 Sep 2009 02:26 AM |
function onTouch(hit) script.Parent.Transparency = 0.5 script.Parent.CanCollide = false m = Instance.New("Message") m.Text = "MUAHAHAHA!" m.Name = "Tricked" m.Parent = game.workspace x = Instance.new("Explosion") x.BlastRadius = 25 x.BlastPressure = 10 x.Parent = game.Workspace x.Position = part.Position end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
Choonwee
|
  |
| Joined: 05 Mar 2009 |
| Total Posts: 4776 |
|
|
| 19 Sep 2009 02:28 AM |
Hmm...?
Isn't that supposed to be the same thing except the first part?
And also, can I try this?
function Humanoid.Touched(part) script.Parent.Transparency = 0.5 script.Parent.CanCollide = false m = Instance.New("Message") m.Text = "MUAHAHAHA!" m.Name = "Tricked" m.Parent = game.workspace wait(4) script.m.Remove() x = Instance.new("Explosion") x.BlastRadius = 25 x.BlastPressure = 10 x.Parent = game.Workspace x.Position = part.Position end
script.Parent.Touched:connect(Touched) |
|
|
| Report Abuse |
|
|
R4P18
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 4025 |
|
|
| 19 Sep 2009 02:34 AM |
| It is not Humanoid.Touched or Touched, but onTouch. Except when connecting, before :connect. |
|
|
| Report Abuse |
|
|
gijsbel11
|
  |
| Joined: 07 Feb 2009 |
| Total Posts: 4223 |
|
|
| 19 Sep 2009 02:58 AM |
Touched(hit)
blablabls
end
script.Parent.Touched:connect(Touched)
it dont have to be onTouch.. |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2009 07:20 AM |
| function ANYTHINGHERE(args) --i always use args as of java |
|
|
| Report Abuse |
|
|
| |
|