dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
| |
|
LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
|
| 06 Apr 2016 08:10 PM |
http://wiki.roblox.com/index.php?title=API:Class/Players/GetPlayerByUserId
I believe this is what you're looking for. There are examples if you get stuck. |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2016 08:10 PM |
| i swear there's a method for this but i can't find it |
|
|
| Report Abuse |
|
|
| |
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 06 Apr 2016 08:11 PM |
lua, the player is most likely not still in the game
|
|
|
| Report Abuse |
|
|
| |
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 06 Apr 2016 08:12 PM |
httpservice doesnt work on roblox's website and I don't know how to use it
|
|
|
| Report Abuse |
|
|
LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
|
| 06 Apr 2016 08:14 PM |
| Oh, oops. Sorry, can't help ya. |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2016 08:16 PM |
| if player.UserId == 1234566 then |
|
|
| Report Abuse |
|
|
regentia
|
  |
| Joined: 07 Feb 2011 |
| Total Posts: 66 |
|
|
| 06 Apr 2016 08:16 PM |
local Players = game:GetService'Players'
function getNameFromUserId(userId) if (userId and type(userId) == "number") then local Success,Error = pcall(function() return Players:GetNameFromUserIdAsync(userId) end) if Success then return Error else assert(Success,Error) end end end
|
|
|
| Report Abuse |
|
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 06 Apr 2016 08:16 PM |
if you are going to reply please read what I posted first lol they are not in the game
|
|
|
| Report Abuse |
|
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
| |
|
| |
|
regentia
|
  |
| Joined: 07 Feb 2011 |
| Total Posts: 66 |
|
| |
|
KLGA
|
  |
| Joined: 19 Apr 2014 |
| Total Posts: 2571 |
|
|
| 06 Apr 2016 08:50 PM |
If you wanna use httpservice use roblox's api for this:
http://api.roblox.com/Users/1
http://wiki.roblox.com/index.php?title=Web_APIs#Get_username_from_ID |
|
|
| Report Abuse |
|
|
rLuaRBLX
|
  |
| Joined: 04 Jan 2016 |
| Total Posts: 70 |
|
|
| 06 Apr 2016 09:07 PM |
| Probably using HTTPSERVICE with Roblox's APIs are the easiest way. Once you learn it, it sticks with you, and it's pretty cool. For example, I made an in-game notification when my twitch stream goes live |
|
|
| Report Abuse |
|
|
RoQuick
|
  |
| Joined: 12 May 2013 |
| Total Posts: 595 |
|
| |
|