so i want to detect if i click a image button
i am wondering if there are other solutions for this
local tb = imagebuttonlocation -- this is image button
local function whenclicked()
print("work")
end
tb.MouseButton1Click:Connect(whenclicked) -- like this but it doesnt work