|
| 26 Oct 2011 12:12 PM |
| I've been given alot of codes, and put excactly like I should have. None of them work...can I get a real one? |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 26 Oct 2011 12:15 PM |
script.Parent.Touched:connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then hit.Parent:BreakJoints() end end) |
|
|
| Report Abuse |
|
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
|
| 26 Oct 2011 12:30 PM |
I'm a horrible scripter... D:
Today is my first day. |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2011 12:51 PM |
function onTouched(part)
h = part.Parent:findFirstChild("Humanoid") if h ~= nil then h.Health = 0 end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 26 Oct 2011 03:22 PM |
| Now, why isn't anybody adding a debounce to their .Touched-called functions? |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2011 03:32 PM |
| script.Parent.Touched:connect(function(s)pcall(function()s.Parent:BreakJoints()end)end) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Oct 2011 04:08 PM |
| How come nates doesn't work =_= |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 26 Oct 2011 05:00 PM |
"How come nates doesn't work =_="
It does. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 26 Oct 2011 05:11 PM |
| Probably because she's doing something stupid. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Oct 2011 05:25 PM |
How could you not notices
Hint hint script.Parent |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Oct 2011 05:29 PM |
script.Parent
game.Workspace
Where do you think she put the script? |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 26 Oct 2011 05:30 PM |
| I don't know, assuming in the brick that she wanted people to touch and die, as that other guys code worked (as mine did, too). |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Oct 2011 05:31 PM |
| Then again the other guy also used script.Parent... |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|