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 » Roblox » All Things ROBLOX
Home Search
 

Re: developer products question

Previous Thread :: Next Thread 
TCForProfit is not online. TCForProfit
Joined: 08 Feb 2014
Total Posts: 370
28 Feb 2014 06:05 PM
how can I get a player's username from a player ID to grant them access to something?
this is the most efficient thing I can come up with:

for i,v in pairs(game.Players:GetChildren()) do
if v.userId == receiptInfo.PlayerId then
playerUsername = v.Name
grantAccessToSomething(playerUsername)
end
end
Report Abuse
Am4uryXp is not online. Am4uryXp
Joined: 04 Sep 2011
Total Posts: 20550
28 Feb 2014 06:07 PM
its not a function

no need to put ''end''
Report Abuse
TCForProfit is not online. TCForProfit
Joined: 08 Feb 2014
Total Posts: 370
28 Feb 2014 06:08 PM
it's a loop
yes, there is a need to put an end.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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