|
| 23 Sep 2016 06:19 PM |
This script is supposed to give you a gear by saying the URL of it Example: https://www.roblox.com/catalog/125013769/Linked-Sword
----------------------------------------------------------------------------------------
function processCommand(speaker, message) if string.sub(message, 1, 31) == "https://www.roblox.com/catalog/" then local extract = string.sub(message, 32, string.len(message)) ##################################################################################################################################################################################################################################################### assetID = (assetID .. letterArray[i]) end assetID = tonumber(assetID) local items = game:GetService("InsertService"):LoadAsset(assetID):GetChildren() for i=1, #items do items[i].Parent = speaker.Backpack end end end
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) processCommand(player, message) end) end)
----------------------------------------------------------------------------------------
19:17:59.527 - Argument 1 missing or nil 19:17:59.527 - Stack Begin 19:17:59.528 - Script 'Workspace.GearURL', Line 15 - global processCommand 19:17:59.528 - Script 'Workspace.GearURL', Line 24 19:17:59.529 - Stack End |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2016 06:19 PM |
| welp it got hashtagged, thanks a lot roblox -_- |
|
|
| Report Abuse |
|
|
pullman45
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 2891 |
|
| |
|
|
| 23 Sep 2016 06:20 PM |
| ##################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################### |
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
| |
|
|
| 23 Sep 2016 06:22 PM |
it's in the description here:
https://www.roblox.com/games/508400227/The-script |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 23 Sep 2016 06:28 PM |
Clearly AssetID is not a number. You should really learn about pattern matching and stuff to do this better.
|
|
|
| Report Abuse |
|
|
|
| 23 Sep 2016 06:33 PM |
I see my fault here: I was supposed to do local letter = string.sub(extract, i, i) not local letter = string.sub(message, i, i) |
|
|
| Report Abuse |
|
|