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: How would I make this work?

Previous Thread :: Next Thread 
ActuaIity is not online. ActuaIity
Joined: 27 Jul 2011
Total Posts: 650
28 Mar 2015 08:19 PM
player=game.Players.LocalPlayer
if Profiles[i].ID.Value == player.userId.Value then
Report Abuse
ActuaIity is not online. ActuaIity
Joined: 27 Jul 2011
Total Posts: 650
28 Mar 2015 08:44 PM
bump1
also output says
21:15:26.856 - Players.Player.PlayerGui.Profile.Script:280: attempt to index field 'userId' (a number value)
Report Abuse
TheJKM98 is not online. TheJKM98
Joined: 20 Dec 2010
Total Posts: 511
28 Mar 2015 08:59 PM
Try this:

if Profiles[i].ID.Value == player.userId then

I am a novice with userId, but a quick look at the wiki made me think this might work.
Report Abuse
ActuaIity is not online. ActuaIity
Joined: 27 Jul 2011
Total Posts: 650
28 Mar 2015 09:41 PM
It worked. Thank you!
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
28 Mar 2015 09:43 PM
I thought it was userId
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