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
 

Why wouldn't this work?

Previous Thread :: Next Thread 
jessemccullough9292 is not online. jessemccullough9292
Joined: 10 Jul 2008
Total Posts: 590
28 Nov 2011 05:20 PM
Banned = {"jessemccullough9292", "Player", "Player"}
for x = 1,#Banned do
if Banned[x].Name == Banned then
Banned[x]:Remove()
end
end
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
28 Nov 2011 05:22 PM
Banned = {"jessemccullough9292", "Player", "Player"}
game.Players.PlayerAdded:connect(function(p)
for i,v in pairs(Banned) do
if p.Name == v then
p:Remove()
end
end
end)
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
28 Nov 2011 05:22 PM
if Banned[x].Name == Banned then
Banned is a table, not a name.

Banned[x]:Remove()
Banned[x] is a string. Primitive data types do not have the Remove method.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
28 Nov 2011 05:22 PM
Banned = {"jessemccullough9292", "Player", "Player"}
P = game.Players:GetChildren()
for y = 1, #P do
for x = 1, #Banned do
if P[y].Name == Banned[x] then
P[y]:Remove()
end
end
end
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