| |
|
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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
|
| 22 Jul 2014 04:41 PM |
its ok i get that a lot just glad i cud help |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
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 |
|
|
| |
|
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 |
|
|
| |
|
| |
|
| |
|
| |
|
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 |
|
|
| |
|
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 |
|
|