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?
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.
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
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)