Banning completely crashes the server

So, my friend and I were joking about a furry being in the server, and he made an account called Rezokar_furry. I, decided to ban it, which somehow freezes the entire server and makes it unusable. I do not have a clue why, as banning ANYTHING else works as intended. I think this is a bug, but I am unsure.

2 Likes

Sounds weird, I think its a bug but I have no clue.
Are you using Adonis? Because in one of my game If I do :reset me the server lags for a few seconds.

1 Like

No, its a custom admin system. All it is is a global function that adds the player id to a table as the position, and all the other stuff like reasons, date, and the admin who banned. its really simple, which is why i think it might be a bug.

1 Like

Ugh, okay. Then you must have a bug in the script wich creates a lag.

2 Likes

Well, i tested it with a new account with my name in it, and it worked perfectly, so this one account seems to not like roblox’s servers.

1 Like

Lol, very weird. Maybe this one user is connected with any script or something wich execute something idk

No, its a fresh account, if need be, this is the whole banning process, in case this somehow affects anything.

_G.addban = function(id,rs,AWB)
	print("Trying to ban "..id.." for "..rs)
	local ds = game:GetService("DataStoreService"):GetDataStore("Bans"):GetAsync("BanList")
	if ds then


		table.insert(ds,id,{id,rs,AWB,os.date()})

		game:GetService("DataStoreService"):GetDataStore("Bans"):SetAsync("BanList",ds)
	else
		ds = {}
		table.insert(ds,id,{id,rs,AWB,os.date()})
		game:GetService("DataStoreService"):GetDataStore("Bans"):SetAsync("BanList",ds)

	end
1 Like

Hm, okay. Looks like a normal script. Maybe the _G can trigger something. I never really used this in my scripts

What does the parameter AWB mean in your code?

1 Like

It stand for admin who banned, meant to be in case an admin abuses.

Is your problem an account named Rezokar_furry crashing your server when you try to ban them and other names are fine?

1 Like

Yeah, even other names with my name in them, the same type, and the same format.

Hmm, maybe try getting that account into a team test and then looking at the logs when you try to ban the user. I don’t think there are other ways to save the log.

EDIT: Just to making sure, the code just makes the server stop functioning right? The client is fine but unresponsive and will get disconnected in 7 seconds?

1 Like

Yeah, except it doesnt even kick you, everything on the serverside stops functioning, but client is fine. I cant load dev console server side, or swing weapons, but i can walk around just fine. i took a picture after i tried banning it through studio, and this is what happened

You tried banned Rezokar_furry in the studio?

1 Like

Yes, and i cant interact with the window, buty i can interact with the studio models client sided, and if i switch to serverside, and it just froze my screen.

Try putting print(ds) after you get it and before you get into the if statement. Also, do print("Mode 1") if it enters the if ds then and print("Mode 2") if it goes into the else statement. Tell me the results after you are done.

1 Like

I found out, if left unattended, it eventually stops being frozen, and i can play like normal, but the account isnt banned. Here is the image though.

Can you try putting names with underscores, like YourName_Random.

1 Like

You mean in the print saying who its trying to ban?

1 Like