hi, i want to make an admin sistem but at the TempBann i used print to debug but it prints: “BannedData” instead of the table
this is the script:
local BannedModule = {}
local Banned
_G.TempBanned = {}
pcall(function()
_G.TempBanned = game:GetService("DataStoreService"):GetDataStore("BannedData")
end)
local DataStore = game:GetService("DataStoreService")
local BannedStore = DataStore:GetDataStore("BannedData")
Banned = _G.Banned
while wait(1) do
for Time, Player in next, game.Players:GetPlayers() do
if table.find(_G.TempBanned, Player.Name) then
Player:Kick("You are Temporary banned!, ur bann time is: "..game:GetService("DataStoreService"):GetDataStore(Player.UserId.."-BanTime"))
end
end
end
return BannedModule