Devin1002
|
  |
| Joined: 29 Jan 2011 |
| Total Posts: 1304 |
|
|
| 18 Jan 2013 11:19 PM |
catalog_items = script.Parent.MainFrame.Catalog:GetChildren() for i = 1, #catalog_items do if catalog_items[i].ClassName == "ImageButton" then catalog_items[i].MouseButton1Click:connect(function() if script.Bux.Value >= catalog_items[i].Bux.Value then script.Bux.Value = script.Bux.Value - catalog_items[i].Bux.Value script.Hat.Value = catalog_items[i].Hat.Value else end end) end end
Its for a GUI game i made in 2011, i need to make sure this will still work. If not, can someone fix it? |
|
|
| Report Abuse |
|
|
Devin1002
|
  |
| Joined: 29 Jan 2011 |
| Total Posts: 1304 |
|
| |
|
|
| 18 Jan 2013 11:32 PM |
Looks good.
¤ ¤ † K M <( •д• )> X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 18 Jan 2013 11:37 PM |
Why didn't you test it?
~ᴬᴵᴺ'ᵀ ᵀᴴᴬᵀ ᴬ ᴷᴵᶜᴷ ᴵᴺ ᵀᴴᴱ ᴴᴱᴬᴰˑ~ |
|
|
| Report Abuse |
|
|
Devin1002
|
  |
| Joined: 29 Jan 2011 |
| Total Posts: 1304 |
|
|
| 18 Jan 2013 11:40 PM |
| Well, i did. It just didnt work.. |
|
|
| Report Abuse |
|
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 18 Jan 2013 11:41 PM |
Did you receive output? ~ᴬᴵᴺ'ᵀ ᵀᴴᴬᵀ ᴬ ᴷᴵᶜᴷ ᴵᴺ ᵀᴴᴱ ᴴᴱᴬᴰˑ~ |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2013 11:50 PM |
Are you sure everything's there / in the right place.
¤ ¤ † K M <( •д• )> X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 12:30 AM |
| Need output :c, We cant debug your code without an output. |
|
|
| Report Abuse |
|
|