| |
|
| |
|
Reqkt
|
  |
| Joined: 17 Jun 2014 |
| Total Posts: 210 |
|
|
| 28 Jun 2014 12:06 PM |
| What you need is to look at Free Models, and get out of the sub-Forum. |
|
|
| Report Abuse |
|
|
| |
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 28 Jun 2014 01:41 PM |
@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 |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 28 Jun 2014 02:10 PM |
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) |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 28 Jun 2014 02:19 PM |
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 |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 02:20 PM |
| lol ug got so mad but still got the method wrong LOL |
|
|
| Report Abuse |
|
|
Reqkt
|
  |
| Joined: 17 Jun 2014 |
| Total Posts: 210 |
|
|
| 28 Jun 2014 02:26 PM |
@UgO They must start somewhere, and this isn't where they should. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 02:55 PM |
@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. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 03:01 PM |
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) |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 28 Jun 2014 07:16 PM |
Euww..
That's an inefficient way of doing so, LuaUser. It's far better to make a table, or a list rather. |
|
|
| Report Abuse |
|
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 29 Jun 2014 02:48 AM |
@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() |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 03:16 AM |
@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) |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 29 Jun 2014 03:18 AM |
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) |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 03:19 AM |
| badfits thats to much ends xd |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 03:34 AM |
banned = {"player1","player2"}
for i, v in pairs(ban) do if Player.Name == v then Player:Kick() end end |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 06:32 AM |
LOL = {["loltrolol"] = true};
game.Players.PlayerAdded:connect(function(plr) if LOL[plr.Name] then plr:Kick() end end) |
|
|
| Report Abuse |
|
|
Reqkt
|
  |
| Joined: 17 Jun 2014 |
| Total Posts: 210 |
|
|
| 29 Jun 2014 03:19 PM |
@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. |
|
|
| Report Abuse |
|
|