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???
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???
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
Are you kidding me?
Do not use Data Persistence!
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.
@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.
1 comment
DataPersistence is deprecated, fyi.