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: How do I do a Kick script?

Previous Thread :: Next Thread 
Angel84711 is not online. Angel84711
Joined: 06 Nov 2012
Total Posts: 19
30 Dec 2013 12:29 PM
So my problem is I don't know how to do a kick script thing. for example if some one says like a "bad word" then how do I kick that person?
Report Abuse
wendeng1 is not online. wendeng1
Joined: 18 Nov 2008
Total Posts: 1391
30 Dec 2013 12:29 PM
kick.name




Cuase i can and it's free just like Maplestory the free online game. pay2win
Report Abuse
erinniall is not online. erinniall
Joined: 03 Jun 2012
Total Posts: 914
30 Dec 2013 12:32 PM
I'm confused, so you wanna be able to kick them when you are there or when you aren't there?

-Only idiots think they're perfect-
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 12:39 PM
Words = {"qqq", "lelel"}
game.Players.PlayerAdded:connect(function(Plr)
Plr.Chatted:connect(function(Msg)
for i = 1, #Words do
if Msg == Words[i] then
Plr:Kick()
end
end)
end)


Maybe that will work, I'm not completely positive as I wrote it in the reply.
Report Abuse
Angel84711 is not online. Angel84711
Joined: 06 Nov 2012
Total Posts: 19
30 Dec 2013 10:04 PM
I'm super confused *.* (I'm an idiot)
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
31 Dec 2013 08:55 AM
Don't be so hard on yourself, every one starts out not knowing what to do.

take what I posted:

Words = {"Word1", "Word2", "Word3"} --Replace the words in the quotes with anything
game.Players.PlayerAdded:connect(function(Plr)
Plr.Chatted:connect(function(Msg)
for i = 1, #Words do
if Msg == Words[i] then
Plr:Kick()
end
end)
end)

and put it in a script in your game
Report Abuse
Angel84711 is not online. Angel84711
Joined: 06 Nov 2012
Total Posts: 19
01 Jan 2014 11:40 AM
wow. you're probably the nicest thing anyone has said to me on ROBLOX XD
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
01 Jan 2014 11:42 AM
Words = {"Word1", "Word2", "Word3"} --Replace the words in the quotes with anything
game.Players.PlayerAdded:connect(function(Plr)
Plr.Chatted:connect(function(Msg)
local Msg = Msg:lower()
for _,v in pairs(Words) do
local v = v:lower()
if string.Find(Msg,v)
Plr:Kick()
break
end
end)
end)
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
01 Jan 2014 11:42 AM
Replace string.Find with string.find
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
01 Jan 2014 12:38 PM
I should have thought of that.
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