generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Permissions?

Previous Thread :: Next Thread 
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image