Trying to update text in the label (script's parent) based on health, it makes the text the player's health at first but doesn't update, I tried making a loop but.... yeah, nothing.
local plr = game.Players.LocalPlayer
local character = plr.Character or plr.CharacterAdded:Wait()
local noid = character:WaitForChild("Humanoid", 10)
local health = noid.Health
local label = script.Parent
script.Parent.Text = ""..health..""
while noid.Health < 100 do
wait(.1)
if noid.Health < 100 then
label.Text = ""..health..""
end
end
I'd really love to receive educational answers! Ty!

2 comments
your script is pretty confusing but your question and description explains better
I don't understand why you're using a local variable for script.Parent if you're literally doing script.Parent.Text?