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

Help with gear summonning With script localplayer inside backpack? local player?

Asked by 6 years ago

So i have made a GUI to instance a gear into a player backpack by ID but it's only summoning it to (0,0,0) condinates And i can't find a way to make it that the parent will be a localplayer

EoLocalPlayer = game:GetService'Players'.LocalPlayer game:service("InsertService"):LoadAsset(16641274).Parent = Workspace.LocalPlayer

0
oml that ^^ isn't how u even do it, you didn't even put it in the players backpack, after .Parent = -- you should put game:GetService("Players").LocalPlayer.BackPack omg greatneil80 2647 — 6y
0
Backpack* if BackPack won't work :P greatneil80 2647 — 6y
0
Heh k. amit123456 2 — 6y
0
I did what you said and its not giving the item to me and not even spawns amit123456 2 — 6y
0
Workspace.LocalPlayer? That doesn't make sense Bellyrium 310 — 6y

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
6 years ago

You have to parent it to the LocalPlayer's Backpack bin.

local plr = game.Players.LocalPlayer 
EoLocalPlayer = plr

game:service("InsertService"):LoadAsset(16641274).Parent = plr:WaitForChild("Backpack")
Ad

Answer this question