generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Anti tie solution,

Previous Thread :: Next Thread 
hiimfree is not online. 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 is not online. 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 is not online. 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 is not online. 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
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
sohailoncheese is not online. sohailoncheese
Joined: 21 Dec 2008
Total Posts: 348
11 Feb 2014 06:07 PM
Just gonna leave this friendly BUMP here.
Report Abuse
kingmatt2 is not online. 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
TeknoMancer is not online. TeknoMancer
Joined: 11 Dec 2012
Total Posts: 673
11 Feb 2014 06:45 PM
auto respawn script.
Report Abuse
kingmatt2 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image