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
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 1629 |
|
| |
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
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
| |
|
| 28 Feb 2014 11:42 AM |
ipairs should still work...
Where is owner defined? |
|
|
| Report Abuse |
|
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 |
|