How can I rename these to keep is organized?
Asked by
8 years ago Edited 8 years ago
I'm not really sure how I can fix this without breaking the script I have... My UI GridLayout is lining things up by name which means if I have TextButtons named Item1 - Item25 its will line up like this... https://gyazo.com/805ff1f14c19c08ed9f387dce6c7f4b3
But If I change that then it will break my script:
01 | script.Parent.ClickDetector.MouseClick:connect( function (Player) |
02 | local items = Player.PlayerGui.InventoryGui.Frame.Inventory.Inventory |
04 | local itm = items:FindFirstChild( 'Item' .. tostring (i)) |
05 | if itm.ItemNumber.Value = = 0 then |
06 | itm.ItemNumber.Value = script.Parent.ItemId.Value |
07 | itm.Image = script.Parent.PicId.Value |
Anyone have a suggestion?