Is it possible to spawn a model with a script?
Model: http://www.roblox.com/FC-item?id=247458463
For this you need to use InsertService
with the LoadAsset
function. The LoadAsset function takes one argument, which should be the mode ID that you want to insert.
The model being inserted has to be owned by either of the two;
So, for your purposes.. your ID is 247458463, so we'll use the LoadAsset function with that as the arguments.
--First, load the model. local model = game:GetService('InsertService'):LoadAsset(247458463) --Now, since the model is nil at this point, parent it. model.Parent = workspace
NOTE: The model inserted will be inside of a model object upon insert. So say you insert a script and use the method above, you have to index 'model' for the script
Yes, it is possible. Use InsertService.
local insertService = game:GetService("InsertService") local modelId = 42069 --change this to the model ID, the string of numbers at the end of a model's link local model = insertService:LoadAsset(modelId) model.Parent = workspace
Please note that you need to own the model to be able to insert it from scripts in-game, as stated here.