#Plot system

1 messages · Page 1 of 1 (latest)

north stone
#

Could someone please explain to me how plot system works? its something i havnt really done yet, the first step is easy, so im making a tycoon, and when the player has placed down their items in their plot, i have no idea how you can make it so the players tycoon get saved, so when they join back in everything is as it was before they left.

warped birchBOT
#

studio** You are now Level 6! **studio

sacred ibex
#

and then when the player rejoins u do all those purchases again

north stone
#

my system will be different

#

its like grow a garden

#

you can place it wherever you want

#

in your plot

sacred ibex
#

loop through each plant

#

and save the cframe and type and stuff

#

so

north stone
#

that does make more sense

sacred ibex
#

it would be a 2d table like
{ {type: string, CFrame: cframe} }

random owl
#

You have to set up a grid system either physically or via script, if you physically set up a grid just give each block its own unique ID I.e “Block1” “Block2” etc, then when the player leaves you save that data of the used block and when they rejoin you clone the item and position it to the appropriate block. I’d recommend a physical grid if you’re not experienced with programming.

willow sapphire
#

first like, since u can't save a part in datastore, u just save the property using strings

#

so basically

#

all u need to do is make a encode and decode thingywingy code for it

#

if u wanna save a part with a size of 1,1,1 and position 7,6,5 (in your grid, so basically just add an offset with that position number so it's placed perfectly in ur gris), u just do this

"s1.1.1p.7.6.5"
just save this

#

now if u want to load it

#

u make a disassembler for it like

#

u check what happen if s comes next, then read it as a size and then it'll place like vector3 3 times in a loop it'll loop 1 1 1, and then it sees a p then make another vector and loop 3 times and put 7 6 5 then make the part, place the position and stuff

#

and add the position to the grid origin, like when u start at grid origin 0,7,5 and u saved like a y position of 1, it'll become 0,8,5 so itll move in that specific origin and not at the workspace grid

willow sapphire