Making a ban function which is connected to a table but I don't know how to.
The Module Script
local banned = {}
reason = "You have been banned from the game from a Developer"
local datastore = game:GetService('DataStoreService'):GetDataStore('MHARebornBanList') --The DataStore
local banlist = {}--Storing the Banlist
function banned.AddBanlist(userid)
table.insert(#banlist, userid)
local key = "Banned-"..userid
local getsave = datastore:GetAsync(key)
if getsave then
end
end
return banned

2 comments
why are you doing table.insert(#t, e)? it should be table.insert(t, e)
Why put this in a module? More work to require it.