Discord message upon joining the game while banned looping over 15 times

Hello.

My game’s ban system’s webhook system repeats at least 15 times.
How would I be able to fix this?
(webhook part is hidden so no one uses it :wink:)
Main Part Of Code:
wait(0.00000001)
while wait(30) do
local plrdata = data2:GetAsync(prefix … tostring(player.UserId))
if plrdata then
player.Banned.Value = plrdata[1]
if player.Banned.Value == true then
player:Kick(plrdata[2])
if dbfordizzymessage == false then
dbfordizzymessage = false
local filtering = "Banned user “…player.Name…” has attempted to join a server! Ban Reason: "…plrdata[2]
print(filtering)
local data = {
content = filtering;
username = player.Name;
avatar_url = “http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId=”…player.UserId

			}
			if dbfordizzymessage == false then
				HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
					dbfordizzymessage = true
					repeat wait() until player == nil
					dbfordizzymessage = false
				end
		  end