local du = workspace.Dummy
local hu = du.Humanoid
local xp = du.Xp.Value
local Text = script.Parent.Text
local frame = script.Parent.Parent.Size
if hu.Health<1 then
script.Parent.text.Value = script.Parent.text.Value + xp
wait(0.1)
Text = script.Parent.text.Value
frame = Vector2.new(0.40, xp / 10 +0.5)
wait (3)
hu.Health = 100
end
thats the script i don t get errors or anything idk why but i already tried with function humanoid.dead but it don t work as well
