local humanoid = script.Parent.Parent.Parent.Parent.Parent.Humanoid
humanoid.HealthChanged:Connect(function()
local newhp = humanoid.Health
if oldhp ~= nil then
local dmg = newhp - oldhp
script.Parent.Text = dmg
else
local dmg = humanoid.MaxHealth - newhp
script.Parent.Text = dmg
end
local oldhp = humanoid.Health
end)
this code will run and work correctly through a normal script but it won't on a client script file here: https://www.dropbox.com/s/nk7t27b9mb78ozh/Game.rbxl?dl=0

2 comments
try just getting the player and character for a local script instead of making ".Parent" chains.............. it really makes it harder to understand if there is a problem in the ancestry and descendants or not
Hey Super! One thing I noticed while looking through your game file: you're using a backdoor version of Kohl's Admin Infinite. This could possibly allow hackers to use server sided cheats or advertise a model.