I'm making a game and its basically a survival game and I'm trying to make when the player dies the timer stops but I can't get there humanoid, This is a Server Script
My Script
local function roundTimer()
while wait() do
for i = intermissionLength, 1, -1 do
InRound.Value = false
wait(1)
Status.Value = "Intermission: ".. i .." seconds left!"
end
for i = roundLegnth, 1, -1 do
InRound.Value = true
wait(1)
Status.Value = "Survive for: ".. i .." seconds left!"
player.Character.Humanoid.Died:Connect(function()
end)
end
end
end
spawn(roundTimer())

4 comments
You cannot get the local player through scripts. You either need to use remote events or get the player through a touched event or something like that. I would recommend doing this in local script. And using remote events to handle on the server.
xD
That doesn't help me sorry
You can use Bindable Event/Function - it's basically two server scripts interacting with each other. In short, once the player dies, the server sends a message to another server script, and it acknowledges the message.