Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does this kill detector not work in server mode?

Asked by 9 years ago

It works in studio mode but somewhat doesn't work at all in server mode.

game:GetService('Players').PlayerAdded:connect(function(player) -- did I do something wrong here?
    player.CharacterAdded:connect(function(character) -- or here?
        character:WaitForChild("Humanoid").Died:connect(function() -- or even here?
            script.Parent.GameCam.Disabled = true
            wait(5.5)
            script.Parent.GameCam.Disabled = false
        end)
    end)
end)

Answer this question