In my script for when my player dies any time I use a variable in a function it Errors out and causes my entire script to stop working like this
local human = character:FindFirstChild("Humanoid")
human.Changed:connect(function(death)
if human.Health == 0 then
then I get this http://gyazo.com/506bf5c20756e130e337ccb3e5f7bf7c <-- picture
the script works completely correct in play solo just not online

3 comments
whats the if statement doing?
just checking to see if the player really died
You could use the
Diedevent instead so that the check is unnecessary. It might also catch a few death-causes that don't fire the Changed event, though I'm not sure. Can you include the rest / more of the script? We need more context I think. Also, can you indicate for sure which line is "line 4" in your actual code?