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: Is there a way to get current username?

Previous Thread :: Next Thread 
UnusualDivinity is not online. UnusualDivinity
Joined: 15 Jun 2012
Total Posts: 291
22 Feb 2013 11:00 AM
I'm wondering if roblox has something similar to.
http://www.roblox.com/game/GetCurrentUser.ashx I was wondering if there's a way to get current username ;o?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
22 Feb 2013 11:07 AM
What do you mean? In a script? Or through hax?
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 11:09 AM
In a LocalScript:

game.Players.LocalPlayer.Name

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
UnusualDivinity is not online. UnusualDivinity
Joined: 15 Jun 2012
Total Posts: 291
22 Feb 2013 11:12 AM
Oh my bad. I forgot to mention I am using c#
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 11:16 AM
What exactly are you trying to do?

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
UnusualDivinity is not online. UnusualDivinity
Joined: 15 Jun 2012
Total Posts: 291
22 Feb 2013 11:17 AM
Get the current username of the logged in profile. I have a login system in c# for roblox. I'm just wondering if it's possible to get the username of the current logged in user.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 11:20 AM
That link will work if the HTTP Web Request or whatever you're using has the appropriate cookies..

But the fact of the matter is if that link return's the player UID then they've logged in, which would indicate you already have their username in a textbox somewhere.

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
22 Feb 2013 11:24 AM
If you have them login through your thing, then just store their username in a variable.
Report Abuse
DannyCore is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
22 Feb 2013 01:17 PM
that wouldn't be safe, pre
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 01:18 PM
^And why's that? 0_o

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
22 Feb 2013 01:22 PM
username is not private at all. It's safe.
Report Abuse
DannyCore is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
22 Feb 2013 01:25 PM
oh, I thought you meant having them login with their full login


username is fine...
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 01:30 PM
^They will need to enter their pass...

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
22 Feb 2013 01:31 PM
Depends if you are account stealing or not...
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 01:35 PM
^He's made a "login system" for roblox. Go figure.

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
22 Feb 2013 02:38 PM
send an http request to http://www.roblox.com/game/GetCurrentUser.ashx
get the userid it spits at you
set it as a variable
send an http request to "http://www.roblox.com/User.aspx?ID=USERID"
get the < [title] > tag
remove the " - ROBLOX" part
wahlah
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 02:56 PM
^He doesn't need to do that. :P

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
22 Feb 2013 03:00 PM
Well it's better than trying to take a user's full login info NOW ISN'T IT?
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Feb 2013 03:05 PM
^He'll have their username anyway though. He's not gonna ask for their user id, is he?

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
22 Feb 2013 04:04 PM
Why is he doing this in C#?

Use something easier, like PHP or ASP.
Report Abuse
DannyCore is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
22 Feb 2013 04:06 PM
so he is using full login?
Report Abuse
nickbricknick464 is not online. nickbricknick464
Joined: 22 Aug 2008
Total Posts: 8302
22 Feb 2013 04:23 PM
@Garnished

Yeah easier must be better for all circumstances, lets make the next cod game in scratch!
Report Abuse
UnusualDivinity is not online. UnusualDivinity
Joined: 15 Jun 2012
Total Posts: 291
22 Feb 2013 06:52 PM
Because PHP is a server side language.
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
23 Feb 2013 01:46 AM
Screen scraping 101
1. Send a request to a website to get the page's HTML
2. Make a match with the HTML that gets the data you want even if your data is surrounded by stuff you don't need.
3. Make another match if you need to trim off excess stuff.
4. You have your data. Convert to other datatypes if you please.
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