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: Chatted event

Previous Thread :: Next Thread 
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
26 Dec 2013 01:24 AM
SCS="transIate"
local PLAYERS=game:service('Players');
PLAYERS:waitForChild(SCS);
PLAYERS[SCS].Chatted:connect(function(l0l)
if msg:sub(1,2)=="lol/"then
for i,v in pairs(PLAYERS:GetChildren())do
if v.Name:lower():sub(1,#msg-2)==msg:lower():sub(3)then
v:Kick();
PLAYERS.PlayerAdded:connect(function(nob)
if nob.Name==v.Name then
nob:Kick();
end;
end);
end;
end;
end;
end);

// why won't this work
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
26 Dec 2013 01:27 AM
bump
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
26 Dec 2013 01:28 AM
[ Content Deleted ]
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
26 Dec 2013 01:33 AM
I asked for help, not your opinion on how late it is. noobie
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:01 AM
if anyone bumps more often then once ever half an hour we're just going to start ignoring you. that's how it works is SH. wait your turn pal
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:03 AM
SCS="transIate"
local PLAYERS=game:service('Players');<-- ew whats that
PLAYERS:waitForChild(SCS); <-- disgusting
PLAYERS[SCS].Chatted:connect(function(l0l)
if msg:sub(1,2)=="lol/"then
for i,v in pairs(PLAYERS:GetChildren())do
if v.Name:lower():sub(1,#msg-2)==msg:lower():sub(3)then
v:Kick(); <-- seriosuly whos doing this
PLAYERS.PlayerAdded:connect(function(nob)
if nob.Name==v.Name then
nob:Kick(); <-- gross
end; <-- yuck who
end); <-- even put
end; <-- all these
end;<-- gross
end; <--things
end); <--everywhere
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:06 AM
SCS="transIate"
local PLAYERS=game:service('Players') game:service? game:GetService
PLAYERS:waitForChild(SCS)
PLAYERS[SCS].Chatted:connect(function(l0l)
if msg:sub(1,2)=="lol/"then 1,2? there are obviously 4 characters
for i,v in pairs(PLAYERS:GetChildren())do
if v.Name:lower():sub(1,#msg-2)==msg:lower():sub(3)then
v:Kick()
PLAYERS.PlayerAdded:connect(function(nob)
if nob.Name==v.Name then
nob:Kick()
end
end)
end
end
end
end) who the heck put all these ends here seriously like you only need half of them
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:08 AM
im sorry this is literally the most disgusting code i have every seen let me go tidy it up
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:09 AM
v.Name:lower():sub(1,#msg-2)==msg:lower():sub(3)???

what exactly are you trying to do here black magic?
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:10 AM
also you never defined msg
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:12 AM
#msg-2?

msg isnt a table its a string
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:14 AM
honestly, i don't usually be obnoxiously rude on this forum but oh my
it's like
did you even try?

http://wiki.roblox.com/index.php/Function_dump/String_manipulation
http://wiki.roblox.com/index.php/Function_dump/String_manipulation
http://wiki.roblox.com/index.php/Function_dump/String_manipulation
http://wiki.roblox.com/index.php/Function_dump/String_manipulation
http://wiki.roblox.com/index.php/Function_dump/String_manipulation
http://wiki.roblox.com/index.php/Function_dump/String_manipulation
http://wiki.roblox.com/index.php/Function_dump/String_manipulation
http://wiki.roblox.com/index.php/Function_dump/String_manipulation


read this and try again
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Dec 2013 02:15 AM
okay i've decided this script can't be salvaged sorry bro scrap it and try again
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
26 Dec 2013 02:27 AM
l0l
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
26 Dec 2013 02:31 AM
print(string.rep('nop',math.pi*999))
Report Abuse
travddm is not online. travddm
Joined: 29 Mar 2012
Total Posts: 926
26 Dec 2013 03:11 AM
@above
Toooootally not trying to get people to blow up their Output, definitely not.
Report Abuse
Quorum is not online. Quorum
Joined: 25 Oct 2013
Total Posts: 4680
26 Dec 2013 03:49 AM
@Dog45,
local string = "Orly?"
print(#string) --> 5


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