It says "attempted to index 'Health' (a number value)" and I do not know what to do to get rid of this error. Basically I am trying to display the characters health on a local gui.
local player = script.Parent.Parent.Parent.Parent.Parent.Parent player.Character.Humanoid.Health.Changed:connect(function(health) script.Parent.Text = health.."%" end)
I didn't see where you defined health. You need to either declare health or point to The proper location.
Try changing health(where you set the text) to
player.Character:FindFirstChild("Humanoid").Health
Sorry if I got anything wrong I am using a phone with spell correction.