Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Need Help with Gamepass service?

I need help making a Gamepass script. I did looked at the Wiki but I don't know how would I make a gamepass script that would give a certain Gear. Using Gear ID. (Oh and with that followed Without having Gear in Lightning nor anywhere in the game) **Is that even possible? Can anyone help me with that? Thanks!

4 comments

0

Why not just clone it from ServerStorage or ReplicatedStorage?

0

That's the catch. As I said above I don't have it in there. And I am asking if it's possible to do that without it.

0

Well why don't you put it in there?

0

Perci1. I am asking if it is possible or not. That's all I am asking for.

1 answer

✓ Accepted answer

You can use InsertService:LoadAsset to insert a gear into the game, as long as you know its ID:

http://wiki.roblox.com/index.php?title=API:Class/InsertService/LoadAsset

Keep in mind that LoadAsset puts the inserted item inside a model. So if you want to insert Darkheart and put it inside a player's backpack:

local assetId = 16895215
local gear = game:GetService("InsertService"):LoadAsset(assetId):GetChildren()[1] -- the first child of the model
gear.Parent = player.Backpack

This discussion is preserved as it was. New answers, comments, and votes are closed.