|
| 22 Jun 2014 09:59 PM |
function onTouch(part) Game.Workspace.Daredevilz.Humanoid.Health = 0 end
brick.Touched:connect(onTouch)
Wtf |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jun 2014 10:00 PM |
I always was iffy using Game.Workspace.
Use game.Workspace.
----
function onTouch(part) game.Workspace.Daredevilz.Humanoid.Health = 0 end
brick.Touched:connect(onTouch)
----
That should fix your problem. If it dosen't, tell me.
~ Electrodacity |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 22 Jun 2014 10:05 PM |
Hmm.
Have you already set "brick" as a variable?
If you have, try this:
function onTouch(part) game.Players["Daredevilz"].Character:BreakJoints() end
brick.Touched:connect(onTouch)
~ Electrodacity |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:07 PM |
That didn't do anything either.
And the brick I'm using is named 'Part' without the apostrophes |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:08 PM |
Bumpy
Also I'm new to scripting. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jun 2014 10:12 PM |
script.Parent.Touched:connect(function(hit) if game.Players:FindFirstChild(hit.Parent.Name) then hit.Parent.Humanoid.Health = 0 end end) |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:13 PM |
| Bah, it's fine. Scripting is too complicated. I'm a better builder anyways. |
|
|
| Report Abuse |
|
|