This is my script that keeps giving me the error this error 09:30:35.247 - Workspace.protectiverobos.Up.LocalScript:3: attempt to call method 'FindFirstChild' (a nil value)
local player = game.Players.LocalPlayer
local name = game.Players.LocalPlayer.Name
local gethumanoid = game.workspace.name:FindFirstChild("Humanoid")
while true do
wait()
if gethumanoid.Health <= game.ServerStorage.PlayerStats.NeededHealth then
script.Parent.Value = false
end
end

4 comments
Now it says this
15:02:26.270 - PlayerStats is not a valid member of ServerStorage
My answer has been edited.
Now it gives me no errors, but doesn't work.