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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Will this work?

Previous Thread :: Next Thread 
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
28 May 2013 01:09 AM
BanList={"DarkRider0797"}

for i,v in ipairs(BanList) do
game.Players.PlayerAdded:Destroy()
end
Report Abuse
Arkose is not online. 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
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
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 is not online. 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
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
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 is not online. 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
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