Answered by
2 years ago Edited 2 years ago
I looked at your question and got interested myself and I made the code for that. here it is
01 | local Character = script.Parent |
02 | local Humanoid = Character:WaitForChild( "Humanoid" ) |
03 | local CurrentHealth = Humanoid.Health |
04 | local HealthScript = Character:FindFirstChild( "Health" ) |
06 | Humanoid.HealthChanged:Connect( function (health) |
07 | if CurrentHealth > health then |
08 | HealthScript.Disabled = true |
10 | HealthScript.Disabled = false |
Put it in StarterCharacterScripts and you done . now the player needs to wait 3 seconds before healing appears