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: Admin script help

Previous Thread :: Next Thread 
magicalandre13 is not online. magicalandre13
Joined: 21 Jan 2011
Total Posts: 5327
01 Mar 2014 01:03 PM
how would i detect the name


like :ban mag


how would i detect mag for my WHOLE name?
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
01 Mar 2014 01:05 PM
what you mean detect it
Report Abuse
magicalandre13 is not online. magicalandre13
Joined: 21 Jan 2011
Total Posts: 5327
01 Mar 2014 01:06 PM
like how does :ban mag


detect magicalandre13
Report Abuse
Azureous is not online. Azureous
Joined: 29 Jan 2012
Total Posts: 25287
01 Mar 2014 01:06 PM
To do admin, you should parse the chat into two values.

The first value is the command that runs a function on a player.
The second value is who the function applies to.

E.G.

function GetPlr(User, Message)
local players={};
local InputString=InputString:lower();
for i,v in next,(game.Players:GetPlayers()) do
if InputString==v.Name:lower() then
table.insert(players, v);
end;
end;
end;
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
01 Mar 2014 01:07 PM
detect it in what like an output message?
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