Insert (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
fixed
>Emess
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|returns = [[nil]]
|returns = [[nil]]
|description = Inserts model into [[Workspace]] (Same as ''model''.Parent = game.Workspace).
|description = Inserts model into [[Workspace]] (Same as ''model''.Parent = game.Workspace).
|object = [[InsertService]]
|object = InsertService
}}</onlyinclude>
}}</onlyinclude>
{{clear floats}}
{{clear floats}}

Latest revision as of 02:17, 30 December 2010

Insert( Model model )
Returns nil
Description: Inserts model into Workspace (Same as model.Parent = game.Workspace).
Member of: InsertService
Example
local model = game:GetService("InsertService"):LoadAsset(assetId)
if(model:IsA("Model")) then
  local tab = game:GetService("InsertService"):Insert(model) 
end


See Also