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
 

Not Recognizing Shirt

Previous Thread :: Next Thread 
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
28 Feb 2014 11:10 AM
The script isn't recognizing that I own all of those shirts, and it doesn't give out any errors.

bad = game:GetService("BadgeService")

sp=script.Parent

shirts = {147918038, 147918059, 147918074, 147918102, 147918119, 147918144, 147918179, 147918193, 147918205,
147918210}
points = 0
for i, v in ipairs(shirts) do
if(bad:UserHasBadge(owner.userId, v)) then
points = points + 1
msg = Instance.new("Message", owner.PlayerGui)
msg.Text = "You own shirt #" .. i .. "!"
wait(.5)
end
end
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
28 Feb 2014 11:25 AM
...
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
28 Feb 2014 11:27 AM
I'm pretty sure ipairs only selects the first three
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
28 Feb 2014 11:31 AM
inpairs
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
28 Feb 2014 11:42 AM
ipairs should still work...

Where is owner defined?
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
28 Feb 2014 11:46 AM
I figured it out. I had it in a local script(it was running a tool).

Thanks for your help guys.
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