I've been trying to make this image label clickable for the past two hours. No matter what I did it would come up with the error "Mouse1ButtonDown is not a valid member of ImageLabel"
function Transfer()
for i, v in pairs(StoredItems) do
local Label = Instance.new("ImageLabel"); Label.Parent = Handler; Handler:WaitForChild("ImageLabel")
Label.Name = v.Name
Label.Image = v.TextureId
Label.MouseButton1Down:connect(function()
if Handler.Selected.Value == nil or Handler.Selected.Value ~= v then
script.Parent.ItemName.Text = v.name
end
end)
end
end

4 comments
It should be ImageButton
Change the imagelabel to an imagebutton...
Ah, the lovely moment of realisation you missed 1 detail and wasted 2 hours of your life.. Welcome to the group
feelsbadman