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 » Scripting Helpers
Home Search
 

Re: How would I..

Previous Thread :: Next Thread 
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 02:15 AM
Insert a gear with a script?
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
14 Jul 2014 02:17 AM
Into a specific person or to everyone?
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 02:19 AM
Specific person.
Report Abuse
SmoothPlastic is not online. SmoothPlastic
Joined: 16 Dec 2013
Total Posts: 697
14 Jul 2014 02:20 AM
hey dark
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 02:20 AM
Hi
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
14 Jul 2014 02:22 AM
gear = PATHTOGEAR.gear

trash = gear:copy()
trash.Parent = game.Workspace.NOOB.StarterPack
trash2 = trash:copy()
trash2.Parent = game.Workspace.Noob.BackPack
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 02:26 AM
No, not that. I want to manually grab the gear from the website and insert it into the game using a script.
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
14 Jul 2014 02:35 AM
Ya nob!
Should of said that!

gear = 123456789

game:GetService("InsertService"):LoadAsset(gear)
wait()
crap = game:GetService("InsertService:):Insert(gear)
crap.Parent = game.Workspace.NOOB.StarterPack
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 02:46 AM
Got this error

03:45:28.401 - httpGet http://www.roblox.com/asset/?id=123456789&serverplaceid=0&clientinsert=0 failed. Trying again. Error: Asset is not trusted for this place. Elapsed time: 0.147061
03:45:28.402 - httpGet failed. Trying again. Elapsed time: 0.147061
03:45:28.403 - Content failed for http://www.roblox.com/Asset/?id=123456789&serverplaceid=0&clientinsert=0 because Asset is not trusted for this place
03:45:28.404 - Content failed because Asset is not trusted for this place
03:45:28.449 - Unable to cast value to Object
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
14 Jul 2014 02:56 AM
Classic mistake :P

gear = 123456789

game:GetService("InsertService"):LoadAsset(gear)
wait()
crap = game:GetService("InsertService:):Insert(gear)
crap.Parent = game.Players.NOOB.StarterPack
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 02:59 AM
Script:
player = script.Parent.Parent.Parent
a = 123456789
b = 2
c = 3
d = 4
e = 5
f = 6
g = 7
h = 8
i = 9
j = 10

if player.Name == ("Player1") then
game:GetService("InsertService"):LoadAsset(a)
wait()
gear1 = game:GetService("InsertService"):Insert(a)
gear1.Parent = game.Players.Player1.StarterGear
end

Output:
03:58:53.313 - httpGet http://www.roblox.com/asset/?id=123456789&serverplaceid=0&clientinsert=0 failed. Trying again. Error: Asset is not trusted for this place. Elapsed time: 0.568364
03:58:53.314 - httpGet failed. Trying again. Elapsed time: 0.568364
03:58:54.040 - Content failed for http://www.roblox.com/Asset/?id=123456789&serverplaceid=0&clientinsert=0 because Asset is not trusted for this place
03:58:54.043 - Content failed because Asset is not trusted for this place
03:58:54.088 - Unable to cast value to Object
03:58:54.089 - Script 'Players.Player1.PlayerGui.ScreenGui.Script', Line 16
03:58:54.090 - Stack End
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
14 Jul 2014 03:05 AM
You have to change 123456789 with your gear id noob
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 03:07 AM
That is the gear id
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 03:08 AM
Oh wait..
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Jul 2014 03:09 AM
Fixed that. Now I got this.

04:08:18.684 - Unable to cast value to Object
04:08:18.685 - Script 'Players.Player1.PlayerGui.ScreenGui.Script', Line 16
04:08:18.685 - Stack End

Line 16 -
gear1 = game:GetService("InsertService"):Insert(a)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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