I am trying to find an object in 'Workspace' depending on what the value is. But the error comes up "Argument 1 Missing Or Nil". Help is appreciated. Thanks.
local player = script.Parent.Parent.Parent.Parent.Parent
local Humanoid = game.Workspace:FindFirstChild(player.BossSpawned.Value.Humanoid) -- error here
script.Parent.Text = Humanoid.Health..(Humanoid.MaxHealth)
function GainCharge(Humanoid)
script.Parent.Text = Humanoid.Health..(Humanoid.MaxHealth)
end
Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
