Now, I have a script that checks game bans. The only thing is, there’s not data saved on that DataStore and it keep saying that it’s an object not a table.
local DSS = game:GetService("DataStoreService")
local Bans = DSS:GetDataStore("Bans")
return function()
while wait(5) do
print("Bans Checked")
if Bans == nil then
Bans:SetAsync("Main", {})
end
for _,v in pairs(game.Players:GetPlayers()) do
if table.find(Bans, v.Name) then
v:Kick("\n\nAdminSystems\n\nYou Are Banned From This Game!")
end
end
end
end