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: humanoid not healing

Previous Thread :: Next Thread 
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 04:35 PM
[ Content Deleted ]
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Jul 2014 04:36 PM
Once the health hits 0 its too late, its dead

You could recreate their joints and its saves them like 90% of the time
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Jul 2014 04:37 PM
tested and it works

local function health()
while Spawn(wait) do
local barsize = (humanoid.Health / humanoid.MaxHealth * 0.98)
barmesh.Scale = Vector3.new(barsize, barmesh.Scale.Y, barmesh.Scale.Z)
if humanoid.Health <= 500 then
bar.BrickColor = lowhealth
end
if humanoid.Health == 0 then
opengate()
heal()
end
end
end
local s = coroutine.create(health)
coroutine.resume(s)

function heal()
for i = 0, 1000, 1 do
wait(1)
humanoid.Health = i
end
end
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 04:39 PM
[ Content Deleted ]
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 04:40 PM
[ Content Deleted ]
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 04:41 PM
[ Content Deleted ]
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Jul 2014 04:41 PM
its ok i get that a lot
just glad i cud help
Report Abuse
Krypticon is not online. Krypticon
Joined: 12 Feb 2014
Total Posts: 680
22 Jul 2014 04:43 PM
Is it because it says 'local function health()'?
idk tbh and I'm tired XD

I might be wrong.
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 04:47 PM
[ Content Deleted ]
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Jul 2014 05:03 PM
No, you have to actually clone the neck joints and limb joints

Use ChildRemoving to check when they get removed
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 05:05 PM
[ Content Deleted ]
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Jul 2014 05:07 PM
When a player dies they get removed

If you set the health, the joints are still gone so they fall apart

If you fix the joints then set the health, from a local script, they'll sometimes live
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
22 Jul 2014 05:09 PM
bad ur so stoopid xdd
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
22 Jul 2014 05:10 PM
^ meanie
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
22 Jul 2014 05:13 PM
^ nonscripter
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 05:15 PM
[ Content Deleted ]
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Jul 2014 05:32 PM
Something like this used to work

local Player = Game.Players.LocalPlayer.Character
local Torso = Player.Torso
local Joints = {
"Left Hip",
"Left Shoulder",
"Neck",
"Right Hip",
"Right Shoulder"
}
function Fix()
for _, v in pairs (Joints) do
Torso[v]:Clone().Parent = Torso
end
Player.HumanoidRootPart.Joint:Clone().Parent = Player.HumanoidRootPart
Player.Humanoid.Health = Player.Humanoid.MaxHealth
end

Torso.ChildRemoving:connect(Fix)
Character.HumanoidRootPart.ChildRemoving:connect(Fix)





Not sure if it doesn't work anymore or if I did it wrong, I think you get the point though

Experiment around till it works
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
22 Jul 2014 05:34 PM
[ Content Deleted ]
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Jul 2014 05:35 PM
Then just change it to not use a player...

Or just clone it and destroy the old one
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