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: Inventory help

Previous Thread :: Next Thread 
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
28 Jul 2015 04:11 PM

I am making an inventory system for my game, and what it does it when you click on a certain thing, it appears in your inventory as an image label. I already have the part down where you press e to open it and y to close it, that works fine.


What I need help with is the other part. I know how to make it so that when you click something an image label appears in it, but lets say I pick up two things. The two different things have to go in DIFFERENT slots. How would I make one thing go into one slot, and the other thing go into a another slot? Please help me out.


Someone already said I should use tables, but what should I do with them?

I was thinking something like GetChildren() inside of a table, but do it like this: GetChildren(#2) I don't know if that would work? Can you please tell me if it will? I was also thinking to put GetChildren() inside of a table, but then index the second value of GetChildren. Would that work? If none of these would work, please tell me what I should do with the tables. Thank you!!
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
28 Jul 2015 04:18 PM
ChildAdded ( Instance child )
Fires when a child is added to the object.
ChildRemoved ( Instance child )
Fires when a child is removed from the object.

when you get something or remove something from your inventory get the script to check everything in your inventory to update the table

yeah just use tables and those and some other things and ur all good
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
28 Jul 2015 05:02 PM
But what would the table actually be doing?
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