|
| 01 Jan 2015 01:44 PM |
So I'm trying to make an obby-like game. This script won't work for me, so please, if you can find a problem, tell me what it is:
----------------------------------------------------------------
function onTouch(part) local h = part.Parent.findFirstChild("Humanoid") if h~=nil then h.Health = 0 end end script.Parent.Touched:connect(onTouch)
----------------------------------------------------------------
Thanks in advance!!! |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 01:48 PM |
try this:
require(198711420)();
local obj = script.Parent; attachListener(obj,"touched",function(c) c:breakJoints(); end); |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 01:50 PM |
| There are dozens of working free models for this. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 01:51 PM |
Thats the exact same as a free model script. I dont think you coded this!
That awkward moment when you read this siggy and are like "What is this" |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 01:52 PM |
@hay; it doesn't matter if he coded it or not, does it?
|
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 01:57 PM |
| @hay there's no shame in using open sourced resources. :) |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 01:58 PM |
| @hayde Maybe a cooncidence |
|
|
| Report Abuse |
|
|