AddToStorage

Constructor:

AddToStorage(TarObj)

Description

Stores a specified object into ClientStorage.

Parameters

Name Type Description
TarObj RWObject Specified object

Examples

Client script. Create an avatar and put it into ClientStorage.

local person = RWObject.Create("Avatar") -- create an avatar
wait(1) -- wait 1
ClientStorage:AddToStorage(person) -- store the avatar into ClientStorage.

Service script. Create an avatar and put it into ServerStorage.

local person = RWObject.Create("Avatar") -- create and retrieve an avatar
wait(1) -- wait 1
ServerStorage:AddToStorage(person) -- store the avatar into ServerStorage.