So, I’m currently trying to make a discord bot database that can ban people with a reason for ban in our roblox game.
Everything works, but I just can’t seem to get another column. Which is the “reason” for ban.
I’ve tried to get all the data in the google spreadsheet, but it just keep saying an error.
for _,player in pairs(game.Players:GetChildren()) do
local ReValue = globalDatabaseGlobal:GetAsync(player.UserId)
local banTable = ReValue:GetAsync(player.UserId.."reason")
local reason = banTable[1]
if ReValue == true then
player:Kick("You've been banned by Console for breaking ROBLOX's TOS. Reason: "..reason[1])
end
end
Anything helps. I just wanna know how to get another column like B,C etc.