Example

for i,v do in pair(player.InventoryGetchildren())
local plr = game.Players.LocalPlayer
Obj1.Size = UDim2.new(1,-12,0,20)
Obj1.Position = UDim2.new(0,0,0,20*i-20)
Obj1.BackgroundTransparency = 1
Obj1.TextScaled = true
Obj1.Text = v.Name
Obj1.MouseButton1Down:connect(function()
plr.Charcter:Equip(v)
end

its break my game by selecting all item in one button

2 comments

0

up vote

0

The syntax is wrong, the script will not run. I have no clue what you're talking about