hiimfree
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 396 |
|
|
| 27 Nov 2013 05:55 PM |
| Could someone make a script that can collides a players tool right when their health hits 0? Please paste it under here. |
|
|
| Report Abuse |
|
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 27 Nov 2013 06:01 PM |
For SFing? Cancollide doesn't matter.
function LiveChecker() while true do if Tool.Parent.Humanoid.Health < 1 then damage = 0 slash_damage = 0 lunge_damage = 0 wait(0.1) elseif Tool.Parent.Humanoid.Health > 0 then wait(0.1) end end end LiveChecker()
Something similar to this. |
|
|
| Report Abuse |
|
|
hiimfree
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 396 |
|
|
| 27 Nov 2013 06:17 PM |
| Didn't work well.. It didn't function properly, and when I killed someone it still tied. Can anyone else try?? |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 27 Nov 2013 06:21 PM |
You probably didn't adjust it to your needs/put it in the right place. Do you even skrip bro?
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 06:24 PM |
coroutine.resume(coroutine.create(function() while wait() do if Tool.Parent.Humanoid.Health < 1 then damage = 0 slash_damage = 0 lunge_damage = 0 wait(0.1) elseif Tool.Parent.Humanoid.Health > 0 then end end end))
I put it in coroutine so that it will not interfere with the rest of the script. |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 27 Nov 2013 06:29 PM |
local tool=script.Parent local humanoid tool.Equipped:connect(function() humanoid=tool.Parent.Humanoid humanoid.Changed:connect(function() if humanoid.Health<=0 then tool.CanCollide=true end end) end)
|
|
|
| Report Abuse |
|
|
squerpooo
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 2356 |
|
|
| 27 Nov 2013 06:33 PM |
Try this. I am not the best of scripters, but it might work.
local player = game.Players.LocalPlayer local tool = script.Parent
player.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function() tool.Handle.CanCollide = true end) end) |
|
|
| Report Abuse |
|
|
hiimfree
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 396 |
|
|
| 27 Nov 2013 07:03 PM |
| Yeah, the scripts you gave me worked, but the problem is it only solved the problem of afterkill ties. not real ties. It was good scripts though, does anyone have a tie that solves the force tieing solution?? |
|
|
| Report Abuse |
|
|
hiimfree
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 396 |
|
|
| 27 Nov 2013 07:13 PM |
| I highly want it, i'm sick of ties, and force ties in sword fighting games. |
|
|
| Report Abuse |
|
|
hiimfree
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 396 |
|
|
| 27 Nov 2013 08:10 PM |
| Please can someone make a solution to it, I'll be very happy.. |
|
|
| Report Abuse |
|
|
hiimfree
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 396 |
|
|
| 30 Nov 2013 02:24 PM |
| a sword's damage doesn't increment in single 1 numerals.. |
|
|
| Report Abuse |
|
|
hiimfree
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 396 |
|
|
| 30 Nov 2013 02:29 PM |
coroutine.resume(coroutine.create(function() while wait() do if Tool.Parent.Humanoid.Health < 1 then damage = 0 slash_damage = 0 lunge_damage = 0 wait(0.1) elseif Tool.Parent.Humanoid.Health > 0 then end end end))
All I see to this, is added lag. |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2014 06:07 PM |
| Just gonna leave this friendly BUMP here. |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 11 Feb 2014 06:08 PM |
SamuelKingx's script is complete crap.
Please explain what you need. |
|
|
| Report Abuse |
|
|
| |
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 11 Feb 2014 06:52 PM |
| When a player joins, clone a script and make it enabled that has a died function and when they die do :LoadCharacter() |
|
|
| Report Abuse |
|
|