generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Unable to cast Array to int?

Previous Thread :: Next Thread 
James_Lahey is not online. James_Lahey
Joined: 05 Sep 2014
Total Posts: 118
08 Aug 2016 09:48 PM
local InsertModels = game:GetService("InsertService"):LoadAsset{16200402, 16200204, 16201628, 36334760, 16975388, 58901534, 58901405, 16200508, 58901481}

wait()

local Models = game.InsertService:GetChildren()

for i=1,#Models do

wait()

Models[i].Parent = game.ServerStorage

end





Report Abuse
James_Lahey is not online. James_Lahey
Joined: 05 Sep 2014
Total Posts: 118
08 Aug 2016 09:49 PM
Having some issues on what to do, anybody know?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
08 Aug 2016 10:06 PM
local assets = {16200402, 16200204, 16201628, 36334760, 16975388, 58901534, 58901405, 16200508, 58901481}
local insertService = game:GetService("InsertService")
local serverStorage = game:GetService("ServerStorage")

for _, asset in ipairs(assets) do
local model = insertService:LoadAsset(asset)
local children = model:GetChildren()
if children[1] then
children[1].Parent = serverStorage
end
model:Destroy()
end
Report Abuse
James_Lahey is not online. James_Lahey
Joined: 05 Sep 2014
Total Posts: 118
08 Aug 2016 10:12 PM
Thank you chimmihc, works !
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image