(SOLVED)Repeated Announcement

SOLVED ISSUE, thanks to who helped!

trying moving
local availableplayers = {}
outside the repeat statement, then the first line within the repeat statement should be this:
availableplayers = {}

i.e.

local availableplayers = {}
repeat
	 availableplayers = {}
-- Checks if player is In the menu, and inserts only available players.
		for i, plr in pairs(game.Players:GetPlayers()) do
			if not plr:FindFirstChild("InMenu") then
				table.insert(availableplayers, plr)
			end
		end 
	wait(2)
until #availableplayers >= 1 
1 Like

As far as ive seen this works very well. Thank you a lot this helped.