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: What's one of the most efficient ways to make an inventory

Previous Thread :: Next Thread 
mightybaseplate is not online. mightybaseplate
Joined: 28 Aug 2010
Total Posts: 7660
13 Sep 2015 05:05 PM
Should I make a bunch of values(inventory slots), Bool values(ifuserhasitem) or tables


http://www.roblox.com/--item?id=296639692http://www.roblox.com/--item?id=296639743http://www.roblox.com/--item?id=296639806
Report Abuse
DataDJ is not online. DataDJ
Joined: 16 Mar 2008
Total Posts: 854
13 Sep 2015 05:08 PM
Iv wanted to make a youtube video on this. Its really simple on how to do. You have 1 local script in your player thats ur inventory, You have a module script in replicated storage that has a list of items. and theres 3 functions inside that module script. GetItem,AddItem,RemoveItem and the AddItem,RemoveItem functions add/remove the item into your inventory then returns the whole entire table.


-Dev
Report Abuse
GlacierGames is not online. GlacierGames
Joined: 22 Oct 2011
Total Posts: 1549
13 Sep 2015 05:09 PM
Whats ur channel?
Report Abuse
DataDJ is not online. DataDJ
Joined: 16 Mar 2008
Total Posts: 854
13 Sep 2015 05:10 PM
I have 0 Scripter tutorials on there, i was suggesting that i wanted to. But i have not done so yet.


-Dev
Report Abuse
GlacierGames is not online. GlacierGames
Joined: 22 Oct 2011
Total Posts: 1549
13 Sep 2015 05:11 PM
Oh
Report Abuse
mightybaseplate is not online. mightybaseplate
Joined: 28 Aug 2010
Total Posts: 7660
13 Sep 2015 05:13 PM
If you can make a tutorial I would be happy. For now I got to do research on module scripts.


http://www.roblox.com/--item?id=296639692http://www.roblox.com/--item?id=296639743http://www.roblox.com/--item?id=296639806
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
13 Sep 2015 05:20 PM
DataDJ is dumb don't listen to him.

Handling the inventory on the client is the stupidest thing ever. That's just asking exploiters to come and rekt everything because they can since they have access to editing the inventory.


Muad'Dib
Report Abuse
DataDJ is not online. DataDJ
Joined: 16 Mar 2008
Total Posts: 854
13 Sep 2015 10:15 PM
Chim, So not true. Just because a script is on local does not mean they have access to everything.


-Dev
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
13 Sep 2015 10:18 PM
i have a dictionary of inventories in a main script like

local plrInventories = {}

plrInventories[Plr.Name] = {}
plrInventories[Plr.Name]['Ooga booga monster'] = (object)

and then use remotefunction for the client to get the inventory, remove from inventory, etc




fetty juap R$53,220 Tx476,715
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
13 Sep 2015 10:21 PM
DataDJ, if it is on the client they can get it. Exploiters have access to everything on their client. Local scripts only run on a client, take the hint.

Muad'Dib
Report Abuse
DataDJ is not online. DataDJ
Joined: 16 Mar 2008
Total Posts: 854
13 Sep 2015 10:51 PM
Chim, That is true they do have access to it. But no exploiters known on roblox have yet taken a table and edited the table within a script.


-Dev
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
13 Sep 2015 10:55 PM
uh, yeah they have, @dj
it's not really that complicated, it's simply editing values. there is no value you can't edit.
it's fine to have a mock table for the client to quickly reference without networking, but for adding items and changing specific values and doing elaborate/precious tasks, you should probably make requests to the server for security purposes.

-=Robo=-
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