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: AntiClear *Simple to fix* please fix

Previous Thread :: Next Thread 
ownage8941 is not online. ownage8941
Joined: 29 Dec 2010
Total Posts: 735
26 Sep 2011 10:48 AM
-- Anti Clear
function onChatted(msg)
if (msg = "clear") then
game.Players.FindChildren(plrs)
plrs:Remove()
end
end

Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
26 Sep 2011 10:49 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
26 Sep 2011 10:49 AM
[ Content Deleted ]
Report Abuse
ownage8941 is not online. ownage8941
Joined: 29 Dec 2010
Total Posts: 735
26 Sep 2011 10:50 AM
@1WOOF
im not that stupid
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
26 Sep 2011 10:50 AM
[ Content Deleted ]
Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
26 Sep 2011 10:51 AM
That wouldn't cancel the clear
Report Abuse
ownage8941 is not online. ownage8941
Joined: 29 Dec 2010
Total Posts: 735
26 Sep 2011 10:51 AM
it would shutdown server
Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
26 Sep 2011 10:52 AM
*faicfacepalm*
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
26 Sep 2011 10:53 AM
*rofl*
function onChatted(msg)
if (msg == "clear") then
game.Players["ownage8941"]:Remove()
end
end

Would shutdown server?

AAHAHAHAHAHAHAHHAHAHAHAHA IM LAUGHING SO HARD THAT MY TEARS ARE COMING OUT XDDD
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
26 Sep 2011 10:53 AM
anyway, it would be pretty hard, since people make diferent words for clear commands. And also, in some cases, if your using this in Script Builder, the person who uses that command might just disable your script with another script.
Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
26 Sep 2011 10:55 AM
function Chatted(msg, player)
player:remove()
end

function Join(player)
player.Chatted:connect(function() Chatted(msg, player) end)
end

Clever, isn't it?
Report Abuse
ownage8941 is not online. ownage8941
Joined: 29 Dec 2010
Total Posts: 735
26 Sep 2011 10:56 AM
@Antiboom
-- Anti Clear
function onChatted(msg)
if (msg = "clear") then
game.Players.FindChildren(plrs)
plrs:Remove()
end
end
FIXED Version
would

Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
26 Sep 2011 10:56 AM
Your plrs isn't defined and how can you use .FindChildren()?
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
26 Sep 2011 10:57 AM
Nah, it wouldnt.
It would just kick everyone in the server - The server would stay on for a while after it.
Report Abuse
ownage8941 is not online. ownage8941
Joined: 29 Dec 2010
Total Posts: 735
26 Sep 2011 11:00 AM
-- Anti Clear
function onChatted(msg)
if (msg = "clear") then
game.Players:GetChildren(plrs)
plrs:Remove()
end
end
Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
26 Sep 2011 11:02 AM
msg = "clear", lolwut?
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
26 Sep 2011 01:40 PM
game.Players.PlayerAdded:connect(function(pl)
pl.Chatted:connect(function(msg)
if string.lower(msg) == "clear" then
pl:remove()
end
end)
end)
Report Abuse
bikerking300 is not online. bikerking300
Joined: 31 Mar 2010
Total Posts: 1034
26 Sep 2011 01:45 PM
game.Players.PlayerAdded:connect(function(plr)
if plr.Name == "ownage8941" then
plr.Chatted:connect(function(msg)
if msg:sub(1,6) == "clear/" then
for i,v in pairs(game.Players:GetChildren()) do
if v:IsA("Player") then
v:Remove()
end) end end) end end end
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
26 Sep 2011 01:51 PM
That would only work on ownage, though..

This will ban the people that say clear, clear:, or clear/.

local bantable = {}

function banned(user)
for _,v in pairs(bantable) do
if string.lower(user) == string.lower(v) then
return true
end
end
return false
end

game.Players.PlayerAdded:connect(function(newpl)
if banned(newpl) then
newpl: Remove()
end
end)

game.Players.PlayerAdded:connect(function(pl)
pl.Chatted:connect(function(msg)
if string.lower(msg) == "clear" or string.lower(msg) == "clear:" or string.lower(msg) == "clear/" then
table.insert(bantable,pl.Name)
pl:remove()
end
end)
end)
Report Abuse
kingmod123 is not online. kingmod123
Joined: 16 May 2009
Total Posts: 699
26 Sep 2011 01:55 PM
game.Players.YourNameHere.Chatted:connect(function(msg)
if msg == "clear" then
for i, v in pairs(game.Players:GetChildren()) do
v:remove()
end
end
end)

Fixed. You need anything else?
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
17 Nov 2011 10:22 AM
@ ownage8941 you are that Stupid
Report Abuse
ownage8941 is not online. ownage8941
Joined: 29 Dec 2010
Total Posts: 735
17 Nov 2011 10:38 AM
2 months ago abdallahbakri1234 your stupid with your free models
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
17 Nov 2011 10:40 AM
@ownage8941 Please use Proper Grammar i can't understand
Report Abuse
ownage8941 is not online. ownage8941
Joined: 29 Dec 2010
Total Posts: 735
17 Nov 2011 10:41 AM
Your stupid.

1. You use free models.
2. you can't Read
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
17 Nov 2011 10:43 AM
@ownage8941 i DON'T USE FREE MODELS
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