GUI frames not clickable with MouseButton1Click

Title pretty much explains the issue, I’m not able to click the frames of my GUI.

k4oK7u31SC

This is my current code which is inside of a localscript inside of the GUI itself.

local test = game.Players.LocalPlayer.PlayerGui.Backpack.BackpackUI.Frame:GetChildren()
for i,v in pairs(test) do
	if v.Name == "Frame" then
		v.MouseButton1Click:Connect(function()
			print('r u being clicked')
		end)
	end
end

Haven’t found much on this besides a somewhat relevant post off of scriptinghelpers.

1 Like

Frames can’t be clicked. You need to use TextButtons or ImageButtons.

2 Likes