Do these strings just determine things by using just strings? You’ll have to use a player’s id or database inside the script
I was thinking like a graveyard for my friends, I can easily get their id’s off of the website because they aren’t currently banned.
2 Likes
that’s the example I copied from the API docs
I actually discovered a weird way to find if player is banned using MarketplaceService
local Marketplace = game:GetService("MarketplaceService")
local function PlayerBanned(UserId)
local success, data = pcall(function ()
return Marketplace:UserOwnsGamePassAsync(UserId,12345) --Any random Gamepass ID
end)
print(data)
--Prints "The specified user does not exist!" if banned
--Prints "false" if player exist (or "ture" if player owns it)
if not success and data ~= true then
return true
end
return false
end
print(PlayerBanned(1)) --Roblox => false
print("-----------")
print(PlayerBanned(27)) --rich(banned) => true
print("-----------")
print(PlayerBanned(8166491)) --1x1x1x1(banned) => true
Note: It’s not totally reliable