SaveInstance (Method)
From Legacy Roblox Wiki
(Redirected from SaveInstance)
SaveInstance( string key, RBX.lua.Instance (Object) value ) | |
Returns | nil |
Description: | Saves a Roblox instance, such as a part that can be reloaded on another server via LoadInstance. The DataComplexity used is the Object's DataCost property. Saving nil removes the entry and frees up DataComplexity units.. |
Member of: | Player |
Example
game.Players.PlayerAdded:connect(function(newPlayer)
newPlayer:WaitForDataReady()
newPlayer:SaveInstance("Model", game.Workspace.Model)
end)