I made a gui, and inside is a TextLabel which displays your health. However, I know that GUIs are in "Players" but health is inside "Humanoid" in your model in "Workspace." I did make a script, but I know it doesn't work.
while true do local n = script.Parent.Parent.Parent.Parent.Parent.Name -- TextLabel,Frame,ScreenGui,PlayerGui,Player local h = game.Workspace.n.Humanoid.Health script.Parent.Text = "Health:" .. h wait(0.1) end
How would I actually do it?
local h = game.Players.LocalPlayer.Character.Humanoid.Health