I'm making a GUI that shows the health of a tree being cut down.
s=game.StarterGui.Status.TextLabel
h=script.Parent.Parent.hit
function onTouched(hit)
s.Text=h.Value
end
script.Parent.Touched:connect(onTouched)
--hit is the name of an intValue
--the s variable leads to a text label
for some reason, it doesn't work when I touch the part, what's going on?

4 comments
C'mon please help
s.Text = tostring(h.Value)
k thx
still doesn't work :/