-- Hides from exploiters -- bin = Instance.new("Folder", nil) bin.Name = tostring(math.random(10000000,99999999)) script.Parent = bin ------------------------------------------------------ local Admins = require(game:GetService("ServerScriptService").PlayerCurrency.Admins) hs = game:GetService("HttpService") link = 'https://newstargeted.com/apis/rbxapi/Users/UserIds.php?Usernames=' function idfromname(username) local user = hs:GetAsync(link..username, false) local dc = hs:JSONDecode(user) return dc.Id end local Banlist = { [137329669] = true; --Put userId for the player you want to ban here [13097964] = true; } local Prefix = ":" local Ban = game:GetService("DataStoreService"):GetDataStore("Banned-1") game.Players.PlayerAdded:connect(function(p) if Banlist[p.UserId] then p:Kick("You have been banned") end local Status = Ban:GetAsync(p.userId) if Status then p:Kick("You have been banned") elseif Status == nil then Ban:SetAsync(p.userId, false) end if Admins[p.UserId] or p.userId == game.CreatorId then p.Chatted:connect(function(msg) if msg:lower():sub(1,#Prefix + 4) == Prefix:lower() .. "ban " then local uid = idfromname(msg:lower():sub(#Prefix + 5)) if not Admins[uid] then Ban:SetAsync(uid, true) end for i,v in pairs(game.Players:GetPlayers()) do if v.UserId == uid then if not Admins[v.UserId] then v:Kick("You have been banned") end end end end if msg:lower():sub(1,#Prefix + 6) == Prefix:lower() .. "unban " then local pname = idfromname(msg:lower():sub(#Prefix + 7)) Ban:SetAsync(tonumber(pname), false) end end) end end)