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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Is anything wrong with this?

Previous Thread :: Next Thread 
Devin1002 is not online. 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 is not online. Devin1002
Joined: 29 Jan 2011
Total Posts: 1304
18 Jan 2013 11:31 PM
You get paidd...
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
18 Jan 2013 11:32 PM
Looks good.

¤ ¤ † K M <( •д• )> X D † ¤ ¤
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
18 Jan 2013 11:37 PM
Why didn't you test it?

~ᴬᴵᴺ'ᵀ ᵀᴴᴬᵀ ᴬ ᴷᴵᶜᴷ ᴵᴺ ᵀᴴᴱ ᴴᴱᴬᴰˑ~
Report Abuse
Devin1002 is not online. Devin1002
Joined: 29 Jan 2011
Total Posts: 1304
18 Jan 2013 11:40 PM
Well, i did. It just didnt work..
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
18 Jan 2013 11:41 PM
Did you receive output?
~ᴬᴵᴺ'ᵀ ᵀᴴᴬᵀ ᴬ ᴷᴵᶜᴷ ᴵᴺ ᵀᴴᴱ ᴴᴱᴬᴰˑ~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
18 Jan 2013 11:50 PM
Are you sure everything's there / in the right place.

¤ ¤ † K M <( •д• )> X D † ¤ ¤
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
19 Jan 2013 12:30 AM
Need output :c, We cant debug your code without an output.
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