#How do I kick an user with ID?
6 messages · Page 1 of 1 (latest)
local player = nil
for i,v in game:GetService("Players"):GetPlayers() do
if v.UserId == 0 then
player = v
end
end
task.wait()
if player then
player:Kick("hi")
end
very shitty way of doing it
lol thanks
wrong for loop
-- // IN SERVERSCRIPTSSERICE
local blacklisted_ids = {
--paste your ids of the players here
}
for index, player in next, game:service("Players"):GetChildren() do
if table.find(blacklisted_ids, player.UserId) then
player:Kick("Blacklisted.")
end
end
** You are now Level 1! **
@unborn osprey