|
| 04 Dec 2013 07:33 PM |
Would it be
local brick = Workspace.Water function (onTouch) Humanoid.Health = 0 |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Dec 2013 07:36 PM |
No.... -- brick = game.Workspace.Water
brick.Touched:connect(function(hit) if game.Players:FindFirstChild(hit.Parent.Name) then player = game.Players[hit.Parent.Name] player.Character:BreakJoints() end end) --
~ℇℸℇℛηαℒℱίℛℇℇαℸℇℛ~ |
|
|
| Report Abuse |
|
|
| |
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
|
| 04 Dec 2013 07:40 PM |
Make a function --code Connect
Put this in the brick:
killBrick = script.Parent
killBrick.Touched:connect(function(hit) if hit.Parent then local Humanoid = hit.Parent:findFirstChild("Humanoid") if Humanoid then Humanoid.Health = 0 end end end) |
|
|
| Report Abuse |
|
|