PlayerGui:GetGuiObjectsAtPosition() not working

It’s not printing ‘Touched’

uis.InputBegan:Connect(function(key, isChatting)
	if isChatting then
		return
	end
	
	if key.KeyCode == Enum.UserInputType.MouseButton1 then
		local x, y = uis:GetMouseLocation().X, uis:GetMouseLocation().Y
		
		for _, v in pairs(playerGui:GetGuiObjectsAtPosition(x, y)) do
			if v.Name == 'PaintFrame' then
				print('Tocuhed')
			end
		end
	end
end)