Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do you create owned houses with data persitance/data store?

Asked by 8 years ago

I want to people to furnish their houses and be able to have that same design, but the wiki is so vague on how to do certain things, so I thought about coming here. Can you explain how to do this?

1 answer

Log in to vote
0
Answered by 8 years ago

Basically, you have three options. If you don't mind not using DataStore, One option is to make a blank template house and use

CreatePlaceAsync(). I may not be able to go into depth here, but this option is quite easy. If you already have the furniture system set up, just use SavePlaceAsync(), and you have a private house system. On the main world, add a teleport to the door. This will work if you're interested in Universes, I have tried using it in one of my projects before and it worked great.

The second option uses datestore, but is more lengthy, but it's assigning a BoolValue to each piece of furniture and saving it using DataStores. Put the object in Workspace where you would like it to go, then you can cut and paste it into ReplicatedStorage.

e.g


furniture = game.ReplicatedStorage.furniture1 if furniture1.Value == true then clone = furniture1:Clone() clone.Parent = workspace end

Option Three: You can store a table in DataStore somehow, but I do not know how, so you can basically make a table that contains all the furniture.

0
I current have a GUI set up to obtain the tools needed for editing the home. Meditate03 0 — 8y
Ad

Answer this question