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 » Scripters
Home Search
 

Re: i got meh some special PRESIDENT QUESTIONS

Previous Thread :: Next Thread 
Era_Gamer is not online. Era_Gamer
Joined: 24 Feb 2016
Total Posts: 549
08 Nov 2016 09:32 PM
ok so


if i have a format liek this one


username:userid

EXAMPLE: Era_Gamer:17984577

How would I get the UserID to be seperate from the name itself (but it'd need to work for any name)

sorry that it's not an actual president but

go trump


- Chief Executive Officer, Era_Gamer.
Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
08 Nov 2016 09:39 PM
local function sepNameID(s)
return string.sub(s,1,string.find(s,":")-1),string.sub(s,string.find(s,":")+1)
end

local name,id=sepNameID("Era_Gamer:17984577")
print(name.."'s ID is: "..id) -->Era_Gamer's ID is: 17984577

local name,id=sepNameID("newcoolman2:7333622")
print(name.."'s ID is: "..id) -->newcoolman2's ID is: 7333622


Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
08 Nov 2016 09:46 PM
:match("(.-):(.+)")
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
08 Nov 2016 10:02 PM
i think obama will win
Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
08 Nov 2016 10:04 PM
hitlah


Report Abuse
L2000 is not online. L2000
Joined: 03 Apr 2008
Total Posts: 77448
08 Nov 2016 10:06 PM
PHIL KESSEL FOR PRESIDENT


If you're seeing this post, it means I'm either dead (leaving behind a very fabulous looking corpse) or my soul has been captured by pixies!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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