PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

SaveInstance

This function was once used by an ancient data persistence method to save an instance which can be loaded again at a later time using Player/LoadInstance

Parameters

Name Type Default Description

key

Returns

Return Type Summary

Code Samples


Player:SaveInstance

The below code will save ‘Model’, a descendant of Workspace, to the player each time they join the game. To access this instance again, we would need to index it by it’s key, ‘Model’, as defined in the first argument of this method.