I am creating a admin thing and I want the admins to be able to regen when there heath changes.
There is a .Changed event. You would use it like so:
function changed() player.Humanoid.Health = 100 end instance.Changed:Connect(changed)
You will use the 'HealthChanged' function as stated above. If for some reason you have the health higher than 100, this will set it to the maxhealth
game:GetService("Players").PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) local Humanoid = char:FindFirstChildOfClass("Humanoid") Humanoid.HealthChanged:Connect(function() Humanoid.Health = Humanoid.MaxHealth end) end) end)