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

What functions are used to create a database?

Asked by 8 years ago

Would it be??

game.Players.LocalPlayer:SaveString(game.Workspace.Part)

game.Players.LocalPlayer:LoadString(game.Workspace.Part)

I need an exact answer.

BUT: Sense it's saying "String" is that only for strings also???

0
DataPersistence is deprecated, fyi. BlueTaslem 18071 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

Data Persistence has a function called SaveInstance and LoadInstance much like the string function I explained earlier, heres the link Data Persistence

game.Players.umeh:SaveInstance("InstanceNameToCallUpon",game.Workspace.Part)
game.Players.umeh:LoadInstance("InstanceNameToCallUpon"):clone().Parent = game.Workspace
0
Are you kidding me? unmiss 337 — 8y
0
Do not use Data Persistence! Validark 1580 — 8y
0
Do not downvote an answer based on your own opinion. The question was about Data Persistence (Hence the 'SaveString' and 'LoadString'), therefore this is a legitimate answer. Muoshuu 580 — 8y
0
@Redbulluse, @jacktaylor, @Narrev. Data Persistence is sufficient with the Asker's question, as he wants to save an instance which DataStore does not provide. A possible argument is you could save the instance as a string to DataStore, however, it may be complicated to do for a new or amateur scripter without use of premodern code or function (Stravant's Instance Save API). M39a9am3R 3210 — 8y
Ad
Log in to vote
-1
Answered by
Validark 1580 Snack Break Moderation Voter
8 years ago

Everything you are looking for (including example code) can be found here.

Answer this question