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: onChatted question

Previous Thread :: Next Thread 
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
06 Aug 2012 06:49 PM
So, I'm scripting admin commands.
Currently, I have no idea to make it so I can abbreviate.

with person 299's, you can say kill/Mass
Instead of having to say, kill/MassiveGman

How do I make it so I can just abbreviate the name?
I have a feeling it is a simple fix..

Thanks for any help!

-:MassiveGman
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
06 Aug 2012 06:50 PM
Look into the string.find function.

http://wiki.roblox.com/index.php/Function_Dump/String_Manipulation#string.find
Report Abuse
Driver12345 is not online. Driver12345
Joined: 12 Dec 2010
Total Posts: 57
06 Aug 2012 06:51 PM
Hmm... Look at Person299's Commands very good
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
06 Aug 2012 06:54 PM
I understand the string.find,

but I still do not understand how to apply it to this certain situation..


-:Massive
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
06 Aug 2012 06:58 PM
function returnLikelyPlayer(nm)
for _, p in pairs(game.Players:GetChildren()) do
if (p.Name:lower():find(nm:lower()) then return p; end
end
end
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
06 Aug 2012 06:59 PM
Oooh.
Thanks!

-:Massive
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
06 Aug 2012 07:00 PM
Lol yw :3
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