I have a script that will run code when it detects a click on frame
However, the frame in question has both a TextLabel and ImageLabel
Clicking on the TextLabel still detects a click on the frame
But not the ImageLabel.
Any properties I need to change? Or should I come at it a different way?
--Class Select is a scrolling frame, Screenshot of hierarchy is below for explanation for _, obj in pairs(ClassSelect:GetChildren()) do if obj:IsA('Frame') then obj.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then print('clicked') end end) end end
(The selected frame in the image is the frame in question)