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: If your ban command isn't working,

Previous Thread :: Next Thread 
StudioSTRIPED is not online. StudioSTRIPED
Joined: 11 Jul 2009
Total Posts: 1268
05 Aug 2012 07:50 PM
and your scripting command is,

would this work, or would it fail to continue processing.

game.Players.PlayerAdded:connect(function(p) if p.Name == "studioSTRIPED" then p:Destroy() end end()

Add 3.4k to my post count.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
05 Aug 2012 07:55 PM
game.Players.PlayerAdded:connect(function(p) if p.Name == "studioSTRIPED" then p:Destroy() end end)


You don't need the "()" on the last end, just a ")" to close the "(" in the function line
Report Abuse
Ayrun is not online. Ayrun
Joined: 27 Jul 2012
Total Posts: 181
05 Aug 2012 08:00 PM
No.

Use this.

Banned = { "Enemy", "AddBans" }

for _,ban in pairs(game:GetService("Players"):GetChildren()) do
for i=1,#Banned do
if ban.Name == Banned[i] then
function Ban(player)
while true do
ban:Remove()
m=Instance.new("Message",workspace)
wait() end end Ban(ban) 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