Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Is there a way to import a catalog item into your game with Lua?

Asked by
funyun 958 Moderation Voter
8 years ago

Like if you wanted a gear or a package in your game, but you want Roblox's original version of that item and not a free model. Could someone give me a general explanation of how that would happen?

0
Free models are the easiest way to do this. They are the exact same as the catalog item almost 100% of the time, unless the publisher has modified it. Getting it from a Free Model is not different than copying it out of your Player's Backpack, it's still the same item. dyler3 1510 — 8y
0
...Still, I wish I could just take ROBLOX's original version and put it in my game, knowing that it's absolutely guaranteed that it has not been toyed with. funyun 958 — 8y

1 answer

Log in to vote
3
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

In fact, there is! Using the InsertService, and LoadAsset method, you can accomplish your goal. Example:

a = game:GetService("InsertService"):LoadAsset(259423003)
a.Parent = game.Workspace.Player.Character

The above will insert "Crimson Bed Head Hair", and put it into Player's Character.

0
thankya shawny funyun 958 — 8y
Ad

Answer this question