Insert (Method)

From Legacy Roblox Wiki
Revision as of 16:01, 30 August 2010 by >Camoy (fixed)
Jump to navigationJump to search
Insert( Model model )
Returns nil
Description: Inserts model into Workspace (Same as model.Parent = game.Workspace).
Member of: [[RBX.lua.InsertService (Object)|InsertService]]
Example
local model = game:GetService("InsertService"):LoadAsset(assetId)
if(model:IsA("Model")) then
  local tab = game:GetService("InsertService"):Insert(model) 
end


See Also