Ultimate Solution Hub

How To Save A Pet Inventory Inside A Datastore Scripting Support

how To Save A Pet Inventory Inside A Datastore Scripting Support
how To Save A Pet Inventory Inside A Datastore Scripting Support

How To Save A Pet Inventory Inside A Datastore Scripting Support Call this in the local script. to setup the inventory. setupinventorygui:fireclient(player) end) saving data. local function save(player) local petsfolder = player:findfirstchild("pets") if not petsfolder then. return the player hasn't created a pets folder, nothing will be saved. Basically it creates a folder within the player’s object upon entry, and every new pet added to the player’s inventory is added to the pets folder. line 1 of the save function was supposed to be “local petsfolder = player.playergui.inventory.scrollingframe”, where it would take the pets in the player’s inventory gui and save them in.

how To Save A Pet Inventory Inside A Datastore Scripting Support
how To Save A Pet Inventory Inside A Datastore Scripting Support

How To Save A Pet Inventory Inside A Datastore Scripting Support The main idea is to input all the data into a table and save that. instead of saving the actual instance, in the inventory, save the data about the object such as the name and anything else you may need. the name is very important since when we load, we will need it to identify the pet being loaded back. Today we script the pet inventory system in our simulator on roblox!subscribe for more roblox scripting tutorials!free model assets can be obtained from my p. In this roblox studio simulator episode, we script the pet inventory gui and reward players pets!subscribe for more roblox scripting tutorials!join my patreo. To save player data in the data store: create a variable named playeruserid for the data store key. then, use playergold to store a player's starting gold amount. local datastoreservice = game:getservice("datastoreservice") local goldstore = datastoreservice:getdatastore("playergold") data store key and value.

Comments are closed.