Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help (game blacklist)?

Asked by
99names 10
8 years ago

What's the issue?

It uses a table.

Script:

local blacklist = {"Player";}

for _,p in pairs (blacklist) do if game.Players:FindFirstChild(p) then p:Kick("no") print("Player has been kicked.") else print("Player is not blacklisted.") end end

Yes, this is a server script.

Answer this question