Not the ROBLOX inventory bar, the Inventory GUI where I have made a button called Equip. Only shows up after purchasing a item in the shop menu. But now the item can't clone to the Backpack because when topbar disabled, I had to use CloneTrooper1019's backpack. Here's what so far I did in my script once trying to equip:

plr = script.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Down:connect(function()
	cloneweapon = game.Lighting:FindFirstChild(script.Parent.Parent.SelObject.Value):Clone()
	plr.Backpack:ClearAllChildren()
	cloneweapon.Parent = plr.Backpack
end)


2 comments

0

Please answer.

0

This isn't the proper code to give an answer.