|
| 14 Jul 2014 02:15 AM |
| Insert a gear with a script? |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2014 02:17 AM |
| Into a specific person or to everyone? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 14 Jul 2014 03:05 AM |
| You have to change 123456789 with your gear id noob |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|