It's stuck on waiting for enough players, can someone please help? (I also added something to the script)

					print(player.Name.." Is Alive!")
				else
					--?????????
					table.remove(plrs,x)
					
				end
			end
		else
			table.remove(plrs,x)
			print(player.name.." Died!")
		end
	end
	
	Status.Value = "There are"..i.." seconds remaining, and "..#plrs.." left!"
	
	if #plrs == 1 then
		--????
		Status.Value = "The winner is "..plrs[1].Name.."!"
		plrs[1].leaderstats.Cash.Value = plrs[1].leaderstats.Cash.Value + reward
		break
	elseif #plrs == 0 then
		Status.Value = "Nobody won"
		break
	elseif i == 0 then
		Status.Value = "The Timer Ran out, y'all are slow"
		break
	end
	
	wait(1)
end

print("End of game")

for i, player in pairs(game.Players:GetPlayers()) do
	character = player.Character
	
	if not character then
		--??
	else
		if character:FindFirstChild ("GameTag") then
			character.GameTag:Destroy()
		end
		
		if character:FindFirstChild ("Sword") then
			character.Sword:Destroy()
		end
		
	end
	player:LoadCharacter()
end

ClonedMap:Destroy()

Status.Value ("Game Ended")

wait(2)

end


3 comments

0

(i didnt put the whole script, i accidentally deleted part of it)

0

have you tried opening the output seeing if there are any errors

0

I have, but all of the errors are from a plugin i installed