I dont know why, but the Item does not show up in roblox’s inventory bar, but it does show up in the sstarterPack folder. The whole inventory system works on Object values which control what to clone.
Ive tried manually placing a tool in the starter pack just to see if it would work, and it works
here is a video:
here is the coode:
UI_Interface.MouseButton1Click:Connect(function()
wait(0.1)
local itemPreview = objValue.Value:Clone()
itemPreview.Parent = script.Parent.PreviewFrame
itemPreview.Drop.MouseButton1Click:Connect(function()
itemPreview:Destroy()
UI_Interface:Destroy()
UI_Interface_RoundEdger:Destroy()
end)
itemPreview.Equip.MouseButton1Click:Connect(function()
local instanceItem = itemPreview.Equip.Value.Value:Clone()
instanceItem.Parent = game.StarterPack
itemPreview:Destroy()
UI_Interface:Destroy()
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.