I want to make a safe zone that makes the player's health infinite, I realized that it also heals the player to max health. Anyways, the problem is I want to get the actual number from max health, a number that I can add to and subtract from without changing the actual value. I want the value of the MaxHealth to be a int value.
Script:
local HealthFolder = Instance.new("Folder",player)
HealthFolder.Name = "HealthFolder"
local OldMaxHealth = Instance.new("IntValue",HealthFolder)
OldMaxHealth.Name = "OldMaxHealth"
local OldHealth = Instance.new("IntValue",HealthFolder)
OldHealth.Name = "OldHealth"
OldMaxHealth.Value = Humanoid.MaxHealth
OldHealth.Value = Humanoid.MaxHealth
