Hey everyone, I’m using this admin panel and everything is working except unban, I’m not a scripter so I’m confused on how I would fix/replace this. I banned my friend to test and tried putting his id in the unban textbox and this error came up. I left the code and F9 screenshot below, thanks.
game.ReplicatedStorage.AdminEvent:FireAllClients(arg2)
elseif action == “Unban” then
if game.Players:GetUserIdFromNameAsync(arg2) then
Ban:SetAsync(game.Players:GetUserIdFromNameAsync(arg2),nil)