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: Would this script work?

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 07:39 PM
Bannednoobs = {"thetacahalt", "Random"}


game.Players.PlayerAdded:connect(function(player)
for i, v in pairs(Bannednoobs) do
if string.lower(player.Name) == string.lower(v) then
pcall(function() v:Destroy()

end)
end
end
end)
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 07:43 PM
Bump
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
18 Jan 2014 07:43 PM
Legitly













































#Trolo :3
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 07:49 PM
Crap, it doesn't work.
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 07:54 PM
Help me please, the script doesn't work
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 07:59 PM
Bump
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 08:02 PM
I don't see nothing wrong with this, however it doesn't work.
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
18 Jan 2014 08:06 PM
I would use ipairs
Report Abuse
suremark is not online. suremark
Joined: 13 Nov 2007
Total Posts: 6315
18 Jan 2014 08:09 PM
Ipairs is technically more suited, but the difference in logic is nil.

Here's a better way to do what you want:

Bannedlist = {Noob1 = true; Noob2 = true;}

game.Players.PlayerAdded:connect(function(Player)
    if Bannedlist[Player.Name] then
        -- pcall(Player.Destroy, Player) (you don't actually need to do this)
        Player:Destroy()
    end
end)
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 08:11 PM
hmm, is this true
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 08:18 PM
And, why are you putting them to true, lol.
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 08:21 PM
Bump.
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jan 2014 08:40 PM
??
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