|
| 04 Sep 2012 08:41 PM |
How do I use a table for permissions such as noban = {"thedeathmaster01", "Player", "Usering"} ??
I am confused on it and can't find anything on it in the wiki. Please help!
~Don't get mad as to what I said, get mad at me as a person |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 08:43 PM |
allowed {"Name"} -- add more, etcetera game.Players.PlayerAdded:connect(function(plr) for i,v in pairs(allowed) do if not plr.Name:lower() == v:lower() then plr:Destroy() end end end)
~http://www.roblox.com/Forum/ShowPost.aspx?PostID=77422811~ To answer your FPS questions! |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 08:51 PM |
No problem... XD.
~http://www.roblox.com/Forum/ShowPost.aspx?PostID=77422811~ To answer your FPS questions! |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 08:54 PM |
So, I did that. This is for an antiban in an SB I'm making. I added the ends right. But it's saying 'eof' expected near 'end' on line 8
noban = {"thedeathmaster01", "TechnologyKing", "Usering", "Player"} -- add more, etcetera
game.Players.PlayerRemoving:connect(lol) for _,v in pairs(noban) do if lol.Name:lower() == v:lower() then Instance.new("Message", Workspace).Text = lol.Name .. " has been kicked from server" end end while true do end end) --RIGHT HERE!!!!!!!!!!!!!!!!!
~Don't get mad as to what I said, get mad at me as a person |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 08:58 PM |
noban = {"thedeathmaster01", "TechnologyKing", "Usering", "Player"} -- add more, etcetera game.Players.PlayerRemoving:connect(function(lol) for _,v in pairs(noban) do if lol.Name:lower() == v:lower() then Instance.new("Message", Workspace).Text = lol.Name .. " has been kicked from server" end end while true do end end) --RIGHT HERE!!!!!!!!!!!!!!!!!
You forgot the function part.
~http://www.roblox.com/Forum/ShowPost.aspx?PostID=77422811~ To answer your FPS questions! |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 08:59 PM |
oh
~Don't get mad as to what I said, get mad at me as a person |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 09:27 PM |
@Cease,
allowed {"Name"} -- add more, etcetera game.Players.PlayerAdded:connect(function(plr) for i,v in pairs(allowed) do if not plr.Name:lower() == v:lower() then plr:Destroy() end end end)
This Script will kick You if Your Name isn't the Same as EVERY Value in the Table. |
|
|
| Report Abuse |
|
|