So i am trying to make a deathmatchsystem (the script is server side) and the script below should check if a player dies it removes the player from the table until 1 player is remaining.
The problem is there is a limited time in this deathmatch and the DMV.Value
is the timer-active value located in ReplicatedStorage
It changes through another timer script from the server.
But the while loop continues and nothing below the while loop doesn’t executes…
while DMV.Value == true do
while #DrawPlayers ~= 1 do
local player = Hdied.Event:Wait() --Player Died
print(player)
local e = table.find(DrawPlayers, player) --Checks if player is one of the DrawPlayers
if e then
table.remove(DrawPlayers, e)
end
end
DMV.Value = false
end