How to unban yourself...? Yeah I know it's stupid

So I was testing out a ban system but I’m quite lonely and don’t have any friends so I put my own id into it - ik that’s flipping dumb - and I’m perm banned, tried deleting the script and it didn’t work, is there some way to whitelist all players/unban everyone?

Or specifically unban me?

Also I apologize if this isn’t the correct forum, if it’s not, then please change it to the correct one thanks.

4 Likes
game:GetService("DataStoreService"):GetDataStore("Name"):RemoveAsync(Key)
6 Likes

Sorry man, literally first day using lua, can you walk me through it?

2 Likes

Give one of you alts admin then unban yourself using your alt.

2 Likes

Better show your script that is responsible for the ban.

2 Likes

There is still a script somewhere that is checking a DataStore to see if your ID is listed and kicking you from the game. Look around in all of the game directories to see if you can find it.

2 Likes

image

1 Like

I really tried, I searched for key words such as ban etc and script keywords but I only recall making this one script - this is a script with a child GUI that gives a ban menu to an admin

1 Like

Okay, what’s your user? Here’s the game link: A Slayer's Life (COMING SOON!) - Roblox

1 Like

It looks like you have other scripts responsible for the ban. Show them all.

3 Likes

I tried making an alt, but I’m bugged right now and when I try create an account it just says “something went wrong” after signing up.

1 Like

Ok, do you have other accounts that where already created?

2 Likes

1


Here’s a ban and unban handler.

2

1 Like

^ They were children of the gui.
image

2 Likes

When you ban someone, does it store the user name in a Datastore if so, you can probaby access it and remove your name out of it

3 Likes

Yeah, user get’s entered*. How do I remove it?

2 Likes

Please send them in script format:

2 Likes

Sorry here:

Admins script:

local admins = {173412116}

game.Players.PlayerAdded:Connect(function(plr) 
	for i,v in pairs(admins) do 
		if v == plr.UserId then 
			local cl = script.BanGUI:Clone() 
			cl.Parent = plr.PlayerGui 
		end
	end
end)

ban handler:


local datastoreservice = game:GetService("DataStoreService") 
local bandata = datastoreservice:GetDataStore("TimedBans")

script.Parent.Parent.Ban.OnServerEvent:Connect(function(plr,plrtoban,reason,days,status) 
	local uid = game.Players:GetUserIdFromNameAsync(plrtoban) 
	local ostime = os.time() -- Time
	local days = tonumber(days) 
	local d = days * 86400 
	local length = d + ostime 
	local table2 = {uid,length,reason} 
	bandata:SetAsync(uid,table2) 
	status.Text = "Banned: "..plrtoban..""
	if game.Players:FindFirstChild(plrtoban) == nil then
		print("Not in server")
	else
		game.Players:FindFirstChild(plrtoban):Kick("You have been banned\n For: "..reason.."")
end)


Unban Handler:


local datastoreservice = game:GetService("DataStoreService") 
local bandata = datastoreservice:GetDataStore("TimedBans")


script.Parent.Parent.Unban.OnServerEvent:Connect(function(plr,plrtounban,status)
	local uid = game.Players:GetUserIdFromNameAsync(plrtounban)
	bandata:SetAsync(uid,{".",".","."})
	status.Text = "Unbanned: "..plrtounban.."" 
end)


2 Likes
local me = DataStoreService:GetDataStore("ma")
 
local success, me = pcall(function()
	return ma:RemoveAsync("Player_1234")
end
2 Likes
game:GetService("DataStoreService"):GetDataStore("TimedBans"):RemoveAsync(UrUserId)


Put this in command bar


3 Likes