-- Game = playerAdded:connect (onEnter)
local function PlayerAdded (p)
playerAdded:connect(onEnter)
end
PlayerAdded = if p = NAME then Game.Players.NAME:destroy()
COMMUNITY QUESTION
What's wrong with this player "call" script?
1 answer
Looks like a ban script to me. Here, try this:
local banland = "ThisGuyIsBanned IHateThisDude CreepyStalker1953" -- Edit here.
game.Players.PlayerAdded:connect(function(p)
for w in string.gmatch(banland, "%a+") do
if string.lower(p.Name) == string.lower(w) then
p:Kick()
break
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You ended it early and connect goes after the PlayerAdded = if p = NAME then Game.Players.NAME:destroy()
Please explain what you are trying to do in this script,