|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 27 Sep 2014 12:28 PM |
| Bump (I really do need this answered) |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|