I am trying to make a temp ban system. This is how I always do it but for some reason it is returning a stupid error
local success, errormessage = pcall(function()
GameBan:SetAsync(tostring(UserID), {TimeOfBan = os.time(), LengthOfBan = tonumber(BanTime), ReasonForBan = Reason, Days = '31 Days'})
end)
if success then
print('Successfully Banned')
end
if not success then
print('Error - '..errormessage)
end
I have checked over everything but it keeps returning this error