|
| 29 Dec 2013 06:49 PM |
-------> script: script.Parent.humanoid if it steps then healthbar = 10 end
dosen't work
Help me please |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 06:50 PM |
| Go to scripting helpers and post this. |
|
|
| Report Abuse |
|
|
ElmoOMG
|
  |
| Joined: 09 Nov 2009 |
| Total Posts: 4643 |
|
|
| 29 Dec 2013 06:50 PM |
1. go 2 free models
2. look for free model script
3. front page game |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 06:53 PM |
| Really I DON'T LIKE FREE MODELS!!! |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 06:54 PM |
This is the saddest attempt of making a kill brick.
If you nee dhelp, go look up how to make a kill brick on YouTube. |
|
|
| Report Abuse |
|
|
Wanwoodex
|
  |
| Joined: 30 Dec 2012 |
| Total Posts: 1334 |
|
|
| 29 Dec 2013 06:55 PM |
| of course it doesn't work learn to script! |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 06:56 PM |
| ... I have no comment for this. |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 06:58 PM |
function onTouched(hit) if hit.Parent == nil then return end hum = hit.Parent:FindFirstChild("Humanoid") if hum ~- nil then hum.Haelth = 0 end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Dec 2013 07:00 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent:BreakJoints() end end) |
|
|
| Report Abuse |
|
|
Gortezio
|
  |
| Joined: 07 Feb 2013 |
| Total Posts: 4744 |
|
|
| 29 Dec 2013 07:00 PM |
function onTouched(hit) if hit.Parent == nil then return end humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid ~- nil then humanoid.Health = 10 end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 07:02 PM |
| I meant to say "Health" on line 5. |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 07:30 PM |
oky let m fx tis:
ef part is tuched den mayk guy hav lowr hp |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 07:34 PM |
script.Parent.Touched:connect(function(DatPart) _ = DatPart.Parent:FindFirstChild("Humanoid") and DatPart.Parent:BreakJoints() end) |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 07:44 PM |
function onTouched(part) --Function named OnTouched connected to this part local h = part.Parent:findFirstChild("Humanoid") --Finds the first child of Part named Humanoid in a variable "h" if h = nil then --If h is nil then h.Health = 0 -- set h's health to 0 end end script.Parent.Touched:connect(onTouched) --Connects the Touched property to function onTouched Some code I got from one of my old videos i made LOLOLOL |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 07:45 PM |
| I just added the notes, the video text didnt have it xD |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 07:51 PM |
script.Parent.Touched:connect(function(hit) hit.Parent:BreakJoints() end) |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2013 04:59 AM |
| I would recommend actually learning to script. |
|
|
| Report Abuse |
|
|