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: inserting models via script

Previous Thread :: Next Thread 
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 04:59 PM
is there a way to insert a model from "my models" into a game without httpservice?
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:06 PM
hi
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
21 Jan 2015 05:08 PM
InsertService
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:25 PM
i tried and failed
never actually used it before but i didn't get any output results
there's obviously something wrong with this:

rocket = game:GetService("InsertService"):LoadAsset(193113820)
rocket.Parent = game.Players.LocalPlayer.Backpack

Report Abuse
TheComputerist is not online. TheComputerist
Joined: 28 Oct 2011
Total Posts: 695
21 Jan 2015 05:27 PM
That's because it spawns as a model not a tool.
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:29 PM
well shoot
it's a tool though
how do i insert it into startergear then
Report Abuse
TheComputerist is not online. TheComputerist
Joined: 28 Oct 2011
Total Posts: 695
21 Jan 2015 05:32 PM
wait(5) -- a little wait
for i,v in pairs(game.Players:GetChildren()) do
rocket = game:GetService("InsertService"):LoadAsset(193113820)
rocket.Parent = v..Backpack
for i,y in pairs(rocket:GetChildren()) do
y.Parent = v.Backpack
end
end


Report Abuse
TheComputerist is not online. TheComputerist
Joined: 28 Oct 2011
Total Posts: 695
21 Jan 2015 05:33 PM
Messed up a little

wait(5) -- a little wait
for i,v in pairs(game.Players:GetChildren()) do
rocket = game:GetService("InsertService"):LoadAsset(193113820)
rocket.Parent = v.Backpack
for i,y in pairs(rocket:GetChildren()) do
y.Parent = v.Backpack
end
end
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:36 PM
well that didn't seem to work
did you test it too @thecomputerist?
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:38 PM
i'm beginning to see the issue

output:

"18:37:46.756 - httpGet http://www.roblox.com/asset/?id=193113820&serverplaceid=95206881&clientinsert=0 failed. Trying again. Error: HTTP 403 (Asset is not trusted for this place). Elapsed time: 0.0679206
18:37:46.821 - Content failed for http://www.roblox.com/Asset/?id=193113820&serverplaceid=95206881&clientinsert=0 because HTTP 403 (Asset is not trusted for this place)
18:37:46.822 - Content failed because HTTP 403 (Asset is not trusted for this place)"

--------------------------

apparently the asset isn't trusted
whatwhatwhat
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
21 Jan 2015 05:39 PM
i think that happens when you try to insert someone elses thing
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
21 Jan 2015 05:39 PM
Is it in ***YOUR*** inventory of owned models?
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:40 PM
no, i own the model
http://www.roblox.com/TOOL-RocketLauncher-item?id=193113820
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:41 PM
it's in my inventory albeit i did purchase the model in the middle of developing the game
i'm going to copy/paste the script and open studio again with a new game
maybe it needs to refresh
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
21 Jan 2015 05:42 PM
So which is it: You own the launcher, or you don't own it? 'Cause you (as place owner) have to own it for it to be trusted.
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:44 PM
i do own it and i refreshed studio
the content is now allowed, the only problem now is that the output says nothing
it says it loaded...
"DataModel Loading http://www.roblox.com/asset/?id=95206881"
i just don't know where it is now
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:50 PM
well crap nevermind it happened again

-----------------------

18:49:24.857 - Content failed for http://www.roblox.com/Asset/?id=193113820&serverplaceid=95206881&clientinsert=0 because HTTP 403 (Asset is not trusted for this place)
18:49:24.857 - Content failed because HTTP 403 (Asset is not trusted for this place)

-----------------------

the model is in my inventory for sure
Report Abuse
DoAndDoOver is not online. DoAndDoOver
Joined: 06 Sep 2014
Total Posts: 628
21 Jan 2015 05:50 PM
insert it manually

save it as your own model

give credit to orig creator in description of model

and then try again
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 05:57 PM
ok
now we're sort of getting somewhere
i published it as my own model (i'm interactivity anyways so it doesn't matter)
i used that id
it appeared in my inventory... a useless model did.
it's not a tool and of course not a rocket launcher
it's just a model
where do i go from here
Report Abuse
DoAndDoOver is not online. DoAndDoOver
Joined: 06 Sep 2014
Total Posts: 628
21 Jan 2015 05:58 PM
omg it doesn't matter if you are the same person

give him credit because your alter ego deserves as much credit as you do
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 06:00 PM
it's the new default launcher anyways!!!
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 06:02 PM
i apologize for being so clueless i don't know any of this
Report Abuse
Sercity is not online. Sercity
Joined: 07 Jul 2014
Total Posts: 156
21 Jan 2015 06:22 PM
apparently "GetFreeModels"is a yield function of insertservice
would using that do anything productive
bc i still don't know how to make the model a tool
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