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

Gear from catalog load in StarterPack?

Asked by 8 years ago

I need to ad a Gear from the roblox catalog into starter pack, il that possible? This is what i could think off, but i dont know how to put it into the Backpack yet...

gearId = 477911027
root = game:GetService("InsertService"):LoadAsset(gearId)
root.Name = "InsertedObject" .. gearId
root.Parent = game.Workspace
root:MoveTo(Vector3.new(0,0,0))
root:MakeJoints()

1 answer

Log in to vote
0
Answered by 8 years ago

root.Parent = TargetPlayer.Backpack

Just grab the player via character with GetPlayerFromCharacter, Name, Id, and other various methods.

Ad

Answer this question