local players=game:GetService("Players")
local unbanasync=players.UnbanAsync
local uids={}
print("locals")
local function unbanPlayers(tbl)
return pcall(unbanasync,players,tbl)
end
print("calling unbanplayers")
local isBanningEnabled,result=unbanPlayers({UserIds={},ApplyToUniverse=true})
print(isBanningEnabled,result,"result")
is this because i did something wrong or indexing players.UnbanAsync doesnt work even tho im passing players as self argument and then unban table
it just gets yielded forever in live server and pcall doesnt even return anything
works in studio but yields forever on a live server
local players=game:GetService("Players")
local unbanasync=players.UnbanAsync
local uids={}
print("locals")
local function unbanPlayers(tbl)
return pcall(unbanasync,players,tbl)
end
print("calling unbanplayers")
local isBanningEnabled,result=unbanPlayers({UserIds={1},ApplyToUniverse=true})
print(isBanningEnabled,result,"result")