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: What's script to ban someone?

Previous Thread :: Next Thread 
FrostBeatz is not online. FrostBeatz
Joined: 24 Apr 2014
Total Posts: 202
28 Jun 2014 12:05 PM
I need it badly.
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
28 Jun 2014 12:06 PM
Player:Kick()
Report Abuse
Reqkt is not online. Reqkt
Joined: 17 Jun 2014
Total Posts: 210
28 Jun 2014 12:06 PM
What you need is to look at Free Models, and get out of the sub-Forum.
Report Abuse
FrostBeatz is not online. FrostBeatz
Joined: 24 Apr 2014
Total Posts: 202
28 Jun 2014 12:08 PM
sorry qq, and thanks
Report Abuse
UgOsMiLy is not online. UgOsMiLy
Joined: 15 Sep 2009
Total Posts: 2095
28 Jun 2014 01:41 PM
@Reqkt

Go away. This forum is for people who need help and you should recognise that some people aren't that experienced. It is not for people who will just flame someone for something they are not sure of.
------------------------------------------------------------------------
Anyway, here it is:

Playername:remove()

Replace playername with the player's name.
I think Playername:Destroy() will not be able to bring him/her back
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
28 Jun 2014 02:10 PM
Banned = {"Player1", "Player2"}

game.Players.PlayerAdded:connect(function(Plr)
for i = 1, #Banned do
if Plr.Name == Banned[i] then
Plr:Kick()
end
end
end)
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
28 Jun 2014 02:19 PM
Banned = {"AnnoyingGuy","Noob","Froob"}

game.Players.ChildAdded:connect(function(plr)
plr.CharacterAdded:wait()
if table.concat(Banned):match(plr.Name) then
plr:kick()
end end)

--scriptz go shorter if'd table.concat
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
28 Jun 2014 02:20 PM
lol ug got so mad but still got the method wrong LOL
Report Abuse
Reqkt is not online. Reqkt
Joined: 17 Jun 2014
Total Posts: 210
28 Jun 2014 02:26 PM
@UgO
They must start somewhere, and this isn't where they should.
Report Abuse
whitem0use is not online. whitem0use
Joined: 07 Jun 2014
Total Posts: 87
28 Jun 2014 02:55 PM
@Reqkt. At first I thought you were being mean, but now I see your logic. I agree with you. I suggest they reverse engineer scripts, and then got the the Lua CookBook and see what everything means.

I have the swag.
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
28 Jun 2014 03:01 PM
Let's do this without tables...


game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if plr.Name == "noob" or plr.Name == "other guy" or plr.Name == "that other one" then
plr:kick()
else
return
end
end)
end)
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
28 Jun 2014 07:16 PM
Euww..

That's an inefficient way of doing so, LuaUser. It's far better to make a table, or a list rather.
Report Abuse
UgOsMiLy is not online. UgOsMiLy
Joined: 15 Sep 2009
Total Posts: 2095
29 Jun 2014 02:48 AM
@reqkt

No, you are still being mean. You are encouraging people to use free models. Everyone will start to flame HIM for using free models. free models. Besides, how will anyone learn from free models?

Anyway, my bad. Its playername:Kick()
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
29 Jun 2014 03:16 AM
@ugo

its true he shouldnt be mean but free models are also usefull to start understanding how it works scripting helpers is mostly for those who are trying to create their own script and script dosent work so we fix it and btw its

local banedPlayers = {}
game.Players.PlayerAdded:connect(function(p)
for i=1,#banedPlayers do
if banedPlayers[i]== p.Name then
p:kick()
end
end
end)
Report Abuse
badfitz99 is not online. badfitz99
Joined: 01 May 2010
Total Posts: 5854
29 Jun 2014 03:18 AM
local blacklist = {"","","","","",""}

game.Players.PlayerAdded:connect(function(p)
for _, v in pairs(blacklist) do
if p.Name == v then
p:Kick()
end
end
end
end)
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
29 Jun 2014 03:19 AM
badfits thats to much ends xd
Report Abuse
CyberSword10 is not online. CyberSword10
Joined: 26 Jun 2011
Total Posts: 679
29 Jun 2014 03:34 AM
banned = {"player1","player2"}

for i, v in pairs(ban) do
if Player.Name == v then
Player:Kick()
end
end
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
29 Jun 2014 06:32 AM
LOL = {["loltrolol"] = true};

game.Players.PlayerAdded:connect(function(plr)
if LOL[plr.Name] then
plr:Kick()
end
end)
Report Abuse
Reqkt is not online. Reqkt
Joined: 17 Jun 2014
Total Posts: 210
29 Jun 2014 03:19 PM
@UgO
I learned from Free Models.
I also didn't type "use Free Models", I typed "look at Free Models".

You learn by inspecting and editing them.
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