Why does it keep printing the false? I made the text the humanoid's health but trust me, it keeps saying it's false. (Only part of the script)
wait(0.1) -- Put this in so the humanoid can load in.
local textt = script.Parent.Parent:WaitForChild("ea")
local plr = game.Players.LocalPlayer.Name -- This is the player
local hum = game.Workspace:FindFirstChild(plr).Humanoid -- This is the humanoid
while wait(1) do -- This is to loop (Obviously)
textt.Text = hum.Health -- You can see I made the humanoid health same to the text.
if hum.Health == textt.Text then -- This is to see if the humanoid(players) health is equal to the text or not
print(textt.Text .. hum.Health) -- If it is, it prints this, which it is NOT doing.
else print('False? Text: '..textt.Text..' Health: '..hum.Health) -- It prints this
end
end

2 comments
Thank you kind stranger.
Your welcome and go to the more active discord group of scriptinghelpers since there are always people there