I would like a help, please. How can I make a ban script special for one player? And probably a special message, So, Example: brick_man joined, He got banned. The red box on top said "You mess with me, You got banned".
How do I do it?
I would like a help, please. How can I make a ban script special for one player? And probably a special message, So, Example: brick_man joined, He got banned. The red box on top said "You mess with me, You got banned".
How do I do it?
Here you go. :) Server script inside ServerScriptStorage
local banned = {"NameOfPlayerWhoIsBanned"}
local prefix = "[Banned] "
local message = "You are banned from the server!"
game.Players.PlayerAdded:Connect(function(player)
for _, v in pairs(banned) do
if player.Name == v then
player:kick(prefix..message)
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Explain your answers.