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: Player Id's?

Previous Thread :: Next Thread 
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
27 Sep 2014 11:51 AM
How would I obtain a players id when they join, and then put it into a value (The inserted object one)
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
27 Sep 2014 11:55 AM
http://wiki.roblox.com/index.php?title=UserId_(Property)

Player holds a userId property.

game.Players.PlayerAdded:connect(function(plr)
local value = Instance.new("IntValue",plr)
value.Value = plr.userId
end)
Report Abuse
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
27 Sep 2014 12:00 PM
I didn't know that I was trying to figure it out in test mode on studio but I couldn't figure it out.
Report Abuse
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
27 Sep 2014 12:16 PM
Eehhh.... This is what I eventually came up with

xd = script.Parent
game.Players.PlayerAdded:connect(function(plr)
xd.image = (plr.userId)
end)

I'm trying to make the player id paste into the image label so it will show the player image.
Report Abuse
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
27 Sep 2014 12:28 PM
Bump (I really do need this answered)
Report Abuse
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
27 Sep 2014 12:37 PM
Bump.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Sep 2014 01:23 PM
xd = script.Parent
game.Players.PlayerAdded:connect(function(plr)
xd.image = ("rbxassetid://"..plr.userId)
end)
Report Abuse
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
27 Sep 2014 01:37 PM
Thank you!!!! I tried that except roblox said it was wrong cause I forgot the ()'s so I thought I wasn't even close with that. So thank you!
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
27 Sep 2014 01:38 PM
Glad I could help :)
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