Script wont kick all players [SOLVED]

and I got no errors----------------------

@Alucard_Fahrenheit, Do the following

  1. Place DeathPoll In ReplicatedStorage
  2. Put the ServerScript inside of ServerScriptService
  3. Paste this code inside the server script
local DeathPoll = game:GetService("ReplicatedStorage"):FindFirstChild("DeathPoll")
DeathPoll:GetPropertyChangedSignal("Value"):Connect(function()
   if DeathPoll.Value == 0 or DeathPoll.Value < 0 then
      print(DeathPoll.Value)
      for i,v in pairs(game:GetService("Players"):GetPlayers()) do
         v:Kick("Game ended, because u killed the enemy team.")
      end
   end
end)
1 Like

IT worked! --------------------------

thank you for sticking by so long to help me

1 Like

No problem! -------------------------

1 Like