|
| 28 May 2013 01:09 AM |
BanList={"DarkRider0797"}
for i,v in ipairs(BanList) do game.Players.PlayerAdded:Destroy() end |
|
|
| Report Abuse |
|
|
Arkose
|
  |
| Joined: 26 May 2013 |
| Total Posts: 745 |
|
|
| 28 May 2013 01:16 AM |
No, but here:
BanList={"DarkRider0797"}
game.Players.PlayerAdded:connect(function(play) for i = 1, #BanList do if BanList[i] == play.Name then play:Destroy() end end end)
|
|
|
| Report Abuse |
|
|
|
| 28 May 2013 01:18 AM |
| Thanks! I knew it wouldn't since my output said ":Destroy() is not a valid member." |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 28 May 2013 01:21 AM |
Just so you know :Destroy() is not a very effective ban script as somebody could still hack.
enter this into a local script
while true do end ----- After that put this;
banscript = Workspace:FindFirstChild("banscript", true) BanList={"DarkRider0797"}
game.Players.PlayerAdded:connect(function(play) for i = 1, #BanList do if BanList[i] == play.Name then copy=banscript:Clone() copy.Parent = play.PlayerGui end end end)
That will crash them and prevent hacking. |
|
|
| Report Abuse |
|
|
|
| 28 May 2013 01:24 AM |
| Gamert, I placed my BanScript in game.Players. Also, should I put the second script inside the first script? I was using this as part of my PlayerAdded script which bans people I hate, and puts people in a certain group in a specific team. |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 28 May 2013 01:26 AM |
| ... What? It doesn't matter where you put the scripts inside each other all though most should be in workspace. |
|
|
| Report Abuse |
|
|