Hello! I want to know how to get Humanoid on a Server Script.
I have an alive IntValue on the Values folder located in Workspace.
I am making a round system game. Whenever a player enters the round, the alive value increases by +1.
When the alive value = 0, the round ends.
I managed to do that, but now I'm stuck with detecting the humanoid.
I do not want to use any loops or playeradded codes because it wouldn't work.
Can somebody help me? Here's the code:
local function SubtractAliveCount(player)
local Alive = game.Workspace.Values.Alive
Alive.Value = Alive.Value - 1
end
Humanoid.OnDied:Connect(SubtractAliveCount)
Thanks!

1 comment
pov: u believe that the server is a player