So i couldent find a tutorial on this I want to make a gui that says health:100 but i have no idea how to acces a local players humanoid
Here's how to access the players humanoid's health:
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") function onHealthChanged(newHealth) --Do whatever you want with the newHealth here end player.CharacterAdded:Connect(function(char) local character = char local humanoid = char:WaitForChild("Humanoid") healthChanged:Disconnect() healthChanged = humanoid.HealthChanged:Connect(onHealthChanged) end) local healthChanged = humanoid.HealthChanged:Connect(onHealthChanged)