When I change the health of the part it doesn't move to what it is supposed to be although it's in a while true do
local hum = script.Parent.Parent.Parent.Parent.Humanoid -- Put Humanoid name into MobGUI
while true do
script.Parent.HealthNum.Text = hum.Health .. "/" .. hum.MaxHealth -- This is Health Humanoid use "/" Health 100/100 or another number
script.Parent.Healthbar.Size = UDim2.new(hum.Health/50,0,1,0)
wait()
end

1 comment
i edited the script from the free model thats why there are those unnecessary comments