Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What functions are used to create a database?

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???

1 comment

0

DataPersistence is deprecated, fyi.

2 answers

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

5 comments

0

Are you kidding me?

0

Do not use Data Persistence!

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.

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).

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

This discussion is preserved as it was. New answers, comments, and votes are closed.