|
|
ReqktJoin Date: 2014-06-17 Post Count: 210 |
What you need is to look at Free Models, and get out of the sub-Forum. |
|
|
UgOsMiLyJoin Date: 2009-09-15 Post Count: 2095 |
@Reqkt
Go away. This forum is for people who need help and you should recognise that some people aren't that experienced. It is not for people who will just flame someone for something they are not sure of.
------------------------------------------------------------------------
Anyway, here it is:
Playername:remove()
Replace playername with the player's name.
I think Playername:Destroy() will not be able to bring him/her back |
|
NyxisJoin Date: 2012-11-15 Post Count: 3374 |
Banned = {"Player1", "Player2"}
game.Players.PlayerAdded:connect(function(Plr)
for i = 1, #Banned do
if Plr.Name == Banned[i] then
Plr:Kick()
end
end
end) |
|
GoulstemJoin Date: 2012-07-04 Post Count: 7177 |
Banned = {"AnnoyingGuy","Noob","Froob"}
game.Players.ChildAdded:connect(function(plr)
plr.CharacterAdded:wait()
if table.concat(Banned):match(plr.Name) then
plr:kick()
end end)
--scriptz go shorter if'd table.concat |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
lol ug got so mad but still got the method wrong LOL |
|
ReqktJoin Date: 2014-06-17 Post Count: 210 |
@UgO
They must start somewhere, and this isn't where they should. |
|
|
@Reqkt. At first I thought you were being mean, but now I see your logic. I agree with you. I suggest they reverse engineer scripts, and then got the the Lua CookBook and see what everything means.
I have the swag. |
|
|
Let's do this without tables...
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if plr.Name == "noob" or plr.Name == "other guy" or plr.Name == "that other one" then
plr:kick()
else
return
end
end)
end) |
|
NyxisJoin Date: 2012-11-15 Post Count: 3374 |
Euww..
That's an inefficient way of doing so, LuaUser. It's far better to make a table, or a list rather. |
|
UgOsMiLyJoin Date: 2009-09-15 Post Count: 2095 |
@reqkt
No, you are still being mean. You are encouraging people to use free models. Everyone will start to flame HIM for using free models. free models. Besides, how will anyone learn from free models?
Anyway, my bad. Its playername:Kick() |
|
|
@ugo
its true he shouldnt be mean but free models are also usefull to start understanding how it works scripting helpers is mostly for those who are trying to create their own script and script dosent work so we fix it and btw its
local banedPlayers = {}
game.Players.PlayerAdded:connect(function(p)
for i=1,#banedPlayers do
if banedPlayers[i]== p.Name then
p:kick()
end
end
end) |
|
badfitz99Join Date: 2010-05-01 Post Count: 5854 |
local blacklist = {"","","","","",""}
game.Players.PlayerAdded:connect(function(p)
for _, v in pairs(blacklist) do
if p.Name == v then
p:Kick()
end
end
end
end) |
|
|
badfits thats to much ends xd |
|
|
banned = {"player1","player2"}
for i, v in pairs(ban) do
if Player.Name == v then
Player:Kick()
end
end |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
LOL = {["loltrolol"] = true};
game.Players.PlayerAdded:connect(function(plr)
if LOL[plr.Name] then
plr:Kick()
end
end) |
|
ReqktJoin Date: 2014-06-17 Post Count: 210 |
@UgO
I learned from Free Models.
I also didn't type "use Free Models", I typed "look at Free Models".
You learn by inspecting and editing them. |
|